Skip to content

Commit

Permalink
Set _ALL_SOURCE for AIX, but avoid its struct list.
Browse files Browse the repository at this point in the history
AIX 5.3 seems to need _ALL_SOURCE for struct addrinfo, but that
introduces a struct list in grp.h.

Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jason Riedy authored and Junio C Hamano committed Jan 16, 2007
1 parent 5ab9cc8 commit fb95220
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */
#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#endif
#define _GNU_SOURCE
#define _BSD_SOURCE
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _BSD_SOURCE 1

#include <unistd.h>
#include <stdio.h>
Expand Down Expand Up @@ -45,7 +46,9 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
#undef _ALL_SOURCE /* AIX 5.3L defines a struct list with _ALL_SOURCE. */
#include <grp.h>
#define _ALL_SOURCE 1

#ifndef NO_ICONV
#include <iconv.h>
Expand Down

0 comments on commit fb95220

Please sign in to comment.