]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability to AIX 3.
authorBruno Haible <bruno@clisp.org>
Wed, 21 Mar 2001 23:49:56 +0000 (23:49 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 21 Mar 2001 23:49:56 +0000 (23:49 +0000)
intl/ChangeLog
intl/dcigettext.c
intl/plural.y

index fc348d91366dc1c107943c61cae114dcffe0aec1..021bc0dfde47f9a6e5e653bd5840d35bd8e6655a 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-21  Bruno Haible  <haible@clisp.cons.org>
+
+       * 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  <haible@clisp.cons.org>
 
        * Makefile.in (DISTFILES.generated): New variable.
index 937c0fdee5c01be489f613f1ed8fda01be955704..de08f7e9da17192f51ae3e72b9b3af54b8cb0ff3 100644 (file)
@@ -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.  */
index f50f8648dfb37732c696320c6954c28292c41258..790cb7f4d65f0b92318ff39d6b01b3079c180b92 100644 (file)
 # include <config.h>
 #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 <stdlib.h>
 #include "gettextP.h"