From: Bruno Haible Date: Wed, 21 Mar 2001 23:49:56 +0000 (+0000) Subject: Portability to AIX 3. X-Git-Tag: v0.10.36~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d417f357c62c03e626e8a55fc2624bc65dffa1b;p=thirdparty%2Fgettext.git Portability to AIX 3. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index fc348d913..021bc0dfd 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,9 @@ +2001-03-21 Bruno Haible + + * dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc + chokes on empty macro arguments. + * plural.y: Add #pragma for alloca on AIX 3. + 2001-03-20 Bruno Haible * Makefile.in (DISTFILES.generated): New variable. diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 937c0fdee..de08f7e9d 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -360,7 +360,9 @@ typedef unsigned char transmem_block_t; #endif /* Lock variable to protect the global data in the gettext implementation. */ +#ifdef _LIBC __libc_rwlock_define_initialized (, _nl_state_lock) +#endif /* Checking whether the binaries runs SUID must be done and glibc provides easier methods therefore we make a difference here. */ diff --git a/intl/plural.y b/intl/plural.y index f50f8648d..790cb7f4d 100644 --- a/intl/plural.y +++ b/intl/plural.y @@ -21,6 +21,13 @@ # include #endif +/* The bison generated parser uses alloca. AIX 3 forces us to put this + declaration at the beginning of the file. The declaration in bison's + skeleton file comes too late. */ +#ifdef _AIX + #pragma alloca +#endif + #include #include "gettextP.h"