Re: fc046a75d539a78e6b2c16534c4078617a69a327 fails on OpenBSD 3.8
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jun 30, 2006, 17:38 UTC
- Message-ID
- <7vk66yilxd.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <86sllmy3ia.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 9 quoted lines
>>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes: >... >>> 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 > > Junio> Crap. Including <sys/poll.h> pollutes your namespace with ctype > Junio> macros?
I should stop imitating others -- not my style. Sorry. Would this work for you?
diff --git a/upload-pack.c b/upload-pack.c index 2b70c3d..b18eb9b 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -1,3 +1,6 @@ +#include <signal.h> +#include <sys/wait.h> +#include <sys/poll.h> #include "cache.h" #include "refs.h" #include "pkt-line.h" @@ -5,9 +8,6 @@ #include "tag.h" #include "object.h" #include "commit.h" #include "exec_cmd.h" -#include <signal.h> -#include <sys/poll.h> -#include <sys/wait.h> static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";