Give proper prototype to gitstrcasestr.
Borrow from NO_MMAP patch by Johannes, squelch compiler warnings by declaring gitstrcasestr() when we use it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 8, 2005 at 14:54 UTC
e1e9c254660244756a72ecfcfff81c15fb32a6e9
2 files changed
+5
-1
Makefile
+1
-1
@@ -246,7 +246,7 @@ ifdef NEEDS_NSL
246
SIMPLE_LIB += -lnsl
247
endif
248
ifdef NO_STRCASESTR
249
- DEFINES += -Dstrcasestr=gitstrcasestr
249
+ DEFINES += -Dstrcasestr=gitstrcasestr -DNO_STRCASESTR=1
250
LIB_OBJS += compat/strcasestr.o
251
endif
252
mailinfo.c
+4
@@ -9,6 +9,10 @@
9
#include <ctype.h>
10
#include <iconv.h>
11
12
+#ifdef NO_STRCASESTR
13
+extern char *gitstrcasestr(const char *haystack, const char *needle);
14
+#endif
15
+
16
static FILE *cmitmsg, *patchfile;
17
18
static int keep_subject = 0;