summaryrefslogtreecommitdiff
path: root/gl/m4/stdlib_h.m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-02-17 12:43:49 +0100
committerSimon Josefsson <simon@josefsson.org>2010-02-17 12:43:49 +0100
commitd140493322aa76e6568f3e61384acafebcc343a1 (patch)
tree627458d1a2065f5275300ac610252529ec56f8a7 /gl/m4/stdlib_h.m4
parentb8d8188e1ae51ce8cc6861ea9dd24d6deaea609e (diff)
downloadlibtasn1-d140493322aa76e6568f3e61384acafebcc343a1.tar.gz
libtasn1-d140493322aa76e6568f3e61384acafebcc343a1.tar.bz2
libtasn1-d140493322aa76e6568f3e61384acafebcc343a1.zip
Update gnulib files.
Diffstat (limited to 'gl/m4/stdlib_h.m4')
-rw-r--r--gl/m4/stdlib_h.m416
1 files changed, 15 insertions, 1 deletions
diff --git a/gl/m4/stdlib_h.m4 b/gl/m4/stdlib_h.m4
index cf41ec0..0693d1a 100644
--- a/gl/m4/stdlib_h.m4
+++ b/gl/m4/stdlib_h.m4
@@ -1,4 +1,4 @@
-# stdlib_h.m4 serial 21
+# stdlib_h.m4 serial 22
dnl Copyright (C) 2007-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -22,6 +22,20 @@ AC_DEFUN([gl_STDLIB_H],
# include <random.h>
#endif
]])
+
+ dnl Check for declarations of anything we want to poison if the
+ dnl corresponding gnulib module is not in use, and which is not
+ dnl guaranteed by C89.
+ gl_WARN_ON_USE_PREPARE([[#include <stdlib.h>
+#if HAVE_SYS_LOADAVG_H
+# include <sys/loadavg.h>
+#endif
+#if HAVE_RANDOM_H
+# include <random.h>
+#endif
+ ]], [atoll canonicalize_file_name getloadavg getsubopt mkdtemp
+ mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r
+ setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv])
])
AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],