Browse Source

[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>
maint
Jason Riedy 19 years ago committed by Junio C Hamano
parent
commit
a6da9395a5
  1. 4
      Makefile
  2. 3
      convert-objects.c
  3. 1
      mailinfo.c

4
Makefile

@ -243,6 +243,10 @@ ifeq ($(uname_S),NetBSD) @@ -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

3
convert-objects.c

@ -1,4 +1,5 @@ @@ -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 <time.h>
#include "cache.h"


1
mailinfo.c

@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
#include <string.h>
#include <ctype.h>
#include <iconv.h>
#include "git-compat-util.h"
#include "cache.h"

static FILE *cmitmsg, *patchfile;

Loading…
Cancel
Save