summaryrefslogtreecommitdiff
path: root/modules/stdlib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-01-12 22:54:15 +0100
committerBruno Haible <bruno@clisp.org>2012-01-12 22:54:15 +0100
commit2c0e4c5dc88b2161bd53617a02c36e87954c7b5e (patch)
treeb473f7f34903fdd23fa440ac123e48c5a44b6b2a /modules/stdlib
parentb2e2341dc7a666aa9ec733d6259d4fbab80c5e9b (diff)
downloadgnulib-2c0e4c5dc88b2161bd53617a02c36e87954c7b5e.tar.gz
random_r: Override incompatible API on AIX, OSF/1.
* lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r): Override the system function if REPLACE_RANDOM_R is 1. * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX and OSF/1, set REPLACE_RANDOM_R. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R. * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R. * modules/random_r (configure.ac): Test REPLACE_RANDOM_R. * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise.
Diffstat (limited to 'modules/stdlib')
-rw-r--r--modules/stdlib1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/stdlib b/modules/stdlib
index 2beee3d2e5..4633841ad2 100644
--- a/modules/stdlib
+++ b/modules/stdlib
@@ -95,6 +95,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
-e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
-e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
-e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
+ -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
-e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
-e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
-e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \