@matheusbsbs / matheus-bagliano / commits / a6da9395a5
Fork 0

[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 <ejr@cs.berkeley.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jason Riedy committed Dec 6, 2005 at 14:20 UTC a6da9395a5b6d3df901ce0a6cb61d123f77d7342
3 files changed +7 -1
Makefile
+4
@@ -243,6 +243,10 @@ ifeq ($(uname_S),NetBSD)
243 ALL_CFLAGS += -I/usr/pkg/include
244 ALL_LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
245 endif
246 +ifeq ($(uname_S),AIX)
247 + NO_STRCASESTR=YesPlease
248 + NEEDS_LIBICONV=YesPlease
249 +endif
250 ifneq (,$(findstring arm,$(uname_M)))
251 ARM_SHA1 = YesPlease
252 endif
convert-objects.c
+2 -1
@@ -1,4 +1,5 @@
1 -#define _XOPEN_SOURCE /* glibc2 needs this */
1 +#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
2 +#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
3 #include <time.h>
4 #include "cache.h"
5
mailinfo.c
+1
@@ -8,6 +8,7 @@
8 #include <string.h>
9 #include <ctype.h>
10 #include <iconv.h>
11 +#include "git-compat-util.h"
12 #include "cache.h"
13
14 static FILE *cmitmsg, *patchfile;