git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: fc046a75d539a78e6b2c16534c4078617a69a327 fails on OpenBSD 3.8

From
Junio C Hamano <junkio@cox.net>
Date
Jun 30, 2006, 17:06 UTC
Message-ID
<7vy7veindn.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<86wtayy42o.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 14 quoted lines
> gcc -o upload-pack.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR upload-pack.c
> In file included from /usr/include/sys/poll.h:54,
>                  from upload-pack.c:9:
> /usr/include/ctype.h:67: error: syntax error before ']' token
> /usr/include/ctype.h:68: error: syntax error before ']' token
> /usr/include/ctype.h:70: error: syntax error before ']' token
> /usr/include/ctype.h:75: error: syntax error before ']' token
> /usr/include/ctype.h:78: error: syntax error before '(' token
> /usr/include/ctype.h:79: error: syntax error before '(' token
> /usr/include/ctype.h:93: error: syntax error before "c"
> In file included from /usr/include/sys/poll.h:54,
>                  from upload-pack.c:9:
> /usr/include/ctype.h:91:1: unterminated #if
> /usr/include/ctype.h:40:1: unterminated #ifndef

Crap. Including <sys/poll.h> pollutes your namespace with ctype macros?

Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 2 of 6 in “fc046a75d539a78e6b2c16534c4078617a69a327 fails on OpenBSD 3.8”
  1. Randal L. SchwartzJun 30, 2006
  2. Junio C HamanoJun 30, 2006
  3. Randal L. SchwartzJun 30, 2006
  4. Junio C HamanoJun 30, 2006
  5. upload-pack.c: <sys/poll.h> includes <ctype.h> on OpenBSD 3.8Junio C Hamano, Jun 30, 2006
  6. Jakub NarebskiJun 30, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.