@matheusbsbs / matheus-bagliano / commits / ed1795fcc5
Fork 0

builtin-upload-archive.c broken on openbsd

Looks like ctype again. Gotta be careful with that on BSD releases: $ gmake prefix=/opt/git all GIT_VERSION = 1.4.2.GIT gcc -o builtin-upload-archive.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR builtin-upload-archive.c In file included from /usr/include/sys/poll.h:54, from builtin-upload-archive.c:11: /usr/include/ctype.h:68: error: syntax error before ']' token /usr/include/ctype.h:69: error: syntax error before ']' token ... /usr/include/sys/poll.h:53:1: unterminated #ifndef /usr/include/sys/poll.h:28:1: unterminated #ifndef gmake: *** [builtin-upload-archive.o] Error 1 This fixes it. Signed-off-by: Junio C Hamano <junkio@cox.net>

Randal L. Schwartz committed Sep 23, 2006 at 17:20 UTC ed1795fcc5f2aa3f105630429bcbed49c50053fa
1 file changed +2 -2
builtin-upload-archive.c
+2 -2
@@ -2,13 +2,13 @@
2 * Copyright (c) 2006 Franck Bui-Huu
3 */
4 #include <time.h>
5 +#include <sys/wait.h>
6 +#include <sys/poll.h>
7 #include "cache.h"
8 #include "builtin.h"
9 #include "archive.h"
10 #include "pkt-line.h"
11 #include "sideband.h"
10 -#include <sys/wait.h>
11 -#include <sys/poll.h>
12
13 static const char upload_archive_usage[] =
14 "git-upload-archive <repo>";