Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-09 01:54:41 +0400
committerJunio C Hamano <junkio@cox.net>2005-10-09 01:54:41 +0400
commite1e9c254660244756a72ecfcfff81c15fb32a6e9 (patch)
tree169670b42ad3ba9768eba780dcb8ad2c4dc64945
parent33bb218e9d7299f6ed06177c65d357ec81954ca9 (diff)
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>
-rw-r--r--Makefile2
-rw-r--r--mailinfo.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 92f0bda5e7..b8ca504f09 100644
--- a/Makefile
+++ b/Makefile
@@ -246,7 +246,7 @@ ifdef NEEDS_NSL
SIMPLE_LIB += -lnsl
endif
ifdef NO_STRCASESTR
- DEFINES += -Dstrcasestr=gitstrcasestr
+ DEFINES += -Dstrcasestr=gitstrcasestr -DNO_STRCASESTR=1
LIB_OBJS += compat/strcasestr.o
endif
diff --git a/mailinfo.c b/mailinfo.c
index df470bb9c2..cb853df993 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -9,6 +9,10 @@
#include <ctype.h>
#include <iconv.h>
+#ifdef NO_STRCASESTR
+extern char *gitstrcasestr(const char *haystack, const char *needle);
+#endif
+
static FILE *cmitmsg, *patchfile;
static int keep_subject = 0;