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>maint
parent
33bb218e9d
commit
e1e9c25466
2
Makefile
2
Makefile
|
@ -246,7 +246,7 @@ ifdef NEEDS_NSL
|
||||||
SIMPLE_LIB += -lnsl
|
SIMPLE_LIB += -lnsl
|
||||||
endif
|
endif
|
||||||
ifdef NO_STRCASESTR
|
ifdef NO_STRCASESTR
|
||||||
DEFINES += -Dstrcasestr=gitstrcasestr
|
DEFINES += -Dstrcasestr=gitstrcasestr -DNO_STRCASESTR=1
|
||||||
LIB_OBJS += compat/strcasestr.o
|
LIB_OBJS += compat/strcasestr.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
|
|
||||||
|
#ifdef NO_STRCASESTR
|
||||||
|
extern char *gitstrcasestr(const char *haystack, const char *needle);
|
||||||
|
#endif
|
||||||
|
|
||||||
static FILE *cmitmsg, *patchfile;
|
static FILE *cmitmsg, *patchfile;
|
||||||
|
|
||||||
static int keep_subject = 0;
|
static int keep_subject = 0;
|
||||||
|
|
Loading…
Reference in New Issue