Re: [PATCH] Initial AIX portability fixes.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 6, 2005, 23:58 UTC
- Message-ID
- <Pine.LNX.4.63.0512070055430.5888@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20493.1133907616@lotus.CS.Berkeley.EDU>
Hi,
On Tue, 6 Dec 2005, Jason Riedy wrote:
> -#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 */
Why not enclose the #define in #ifndef/#endif, and do the real magic in the Makefile? Within the AIX clause:
ALL_CFLAGS += -D_XOPEN_SOURCE=500 -XOPEN_SOURCE_EXTENDED=1
This way the source does not get cluttered with platform dependent defines.
Hth, Dscho