From: Jason Riedy Date: Tue, 6 Dec 2005 22:20:16 +0000 (-0800) Subject: [PATCH] Initial AIX portability fixes. X-Git-Tag: v0.99.9m^2~54 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a6da9395a5b6d3df901ce0a6cb61d123f77d7342;p=git.git [PATCH] Initial AIX portability fixes. 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 Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 425c519e..01b6643b 100644 --- a/Makefile +++ b/Makefile @@ -243,6 +243,10 @@ ifeq ($(uname_S),NetBSD) 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 d78a8b4a..b49bce26 100644 --- a/convert-objects.c +++ b/convert-objects.c @@ -1,4 +1,5 @@ -#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 #include "cache.h" diff --git a/mailinfo.c b/mailinfo.c index 3b97a893..d4b41636 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -8,6 +8,7 @@ #include #include #include +#include "git-compat-util.h" #include "cache.h" static FILE *cmitmsg, *patchfile;