summaryrefslogtreecommitdiffstats
path: root/intl
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-03-21 23:49:56 +0000
committerBruno Haible <bruno@clisp.org>2001-03-21 23:49:56 +0000
commit2d417f357c62c03e626e8a55fc2624bc65dffa1b (patch)
tree8ebb50ea5f408844e10c68050040e00c9cc2d10c /intl
parent9b85d89a2fe8b9e05f25f125c1f933556076a221 (diff)
downloadexternal_gettext-2d417f357c62c03e626e8a55fc2624bc65dffa1b.zip
external_gettext-2d417f357c62c03e626e8a55fc2624bc65dffa1b.tar.gz
external_gettext-2d417f357c62c03e626e8a55fc2624bc65dffa1b.tar.bz2
Portability to AIX 3.
Diffstat (limited to 'intl')
-rw-r--r--intl/ChangeLog6
-rw-r--r--intl/dcigettext.c2
-rw-r--r--intl/plural.y7
3 files changed, 15 insertions, 0 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index fc348d9..021bc0d 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -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.
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index 937c0fd..de08f7e 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 f50f864..790cb7f 100644
--- a/intl/plural.y
+++ b/intl/plural.y
@@ -21,6 +21,13 @@
# 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"