upload-pack.c: <sys/poll.h> includes <ctype.h> on OpenBSD 3.8
Merlyn reports that <sys/poll.h> on OpenBSD 3.8 includes <ctype.h> and having our custom ctype (done in git-compat-util.h which is included via cache.h) makes upload-pack.c uncompilable. Try to work it around by including the system headers first. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jun 30, 2006 at 11:30 UTC
e3a56298135ed4cce302e7da792793d3e5623c29
1 file changed
+3
-3
upload-pack.c
+3
-3
@@ -1,3 +1,6 @@
1
+#include <signal.h>
2
+#include <sys/wait.h>
3
+#include <sys/poll.h>
4
#include "cache.h"
5
#include "refs.h"
6
#include "pkt-line.h"
@@ -5,9 +8,6 @@
8
#include "object.h"
9
#include "commit.h"
10
#include "exec_cmd.h"
8
-#include <signal.h>
9
-#include <sys/poll.h>
10
-#include <sys/wait.h>
11
12
static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";
13