summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be61db9)
raw | patch | inline | side by side (parent: be61db9)
author | Jason Riedy <ejr@EECS.Berkeley.EDU> | |
Tue, 6 Dec 2005 22:20:16 +0000 (14:20 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Dec 2005 00:15:55 +0000 (16:15 -0800) |
Added an AIX clause in the Makefile; that clause likely
will be wrong for any AIX pre-5.2, but I can only test
on 5.3. mailinfo.c was missing the compat header file,
and convert-objects.c needs to define a specific
_XOPEN_SOURCE as well as _XOPEN_SOURCE_EXTENDED.
Signed-off-by: E. Jason Riedy <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
will be wrong for any AIX pre-5.2, but I can only test
on 5.3. mailinfo.c was missing the compat header file,
and convert-objects.c needs to define a specific
_XOPEN_SOURCE as well as _XOPEN_SOURCE_EXTENDED.
Signed-off-by: E. Jason Riedy <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history | |
convert-objects.c | patch | blob | history | |
mailinfo.c | patch | blob | history |
diff --git a/Makefile b/Makefile
index 425c519ede65714d7c05474a2c19faa6a1608e94..01b6643bdfd87ae57052a0545a733d4e11ba5136 100644 (file)
--- a/Makefile
+++ b/Makefile
ALL_CFLAGS += -I/usr/pkg/include
ALL_LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
endif
+ifeq ($(uname_S),AIX)
+ NO_STRCASESTR=YesPlease
+ NEEDS_LIBICONV=YesPlease
+endif
ifneq (,$(findstring arm,$(uname_M)))
ARM_SHA1 = YesPlease
endif
diff --git a/convert-objects.c b/convert-objects.c
index d78a8b4ae3af80a1207b0e8894ca55fe2363114b..b49bce2681caec6cf6ea008aae6d9c58fff60639 100644 (file)
--- a/convert-objects.c
+++ b/convert-objects.c
-#define _XOPEN_SOURCE /* glibc2 needs this */
+#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
+#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#include <time.h>
#include "cache.h"
diff --git a/mailinfo.c b/mailinfo.c
index 3b97a893f058aeb4a2be139947b152fad2555212..d4b4163628e582185e8a28defe009c75aa62edab 100644 (file)
--- a/mailinfo.c
+++ b/mailinfo.c
#include <string.h>
#include <ctype.h>
#include <iconv.h>
+#include "git-compat-util.h"
#include "cache.h"
static FILE *cmitmsg, *patchfile;