* lib/stdlib.in.h: Don't include <random.h>.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Don't initialize HAVE_RANDOM_H.
* m4/random_r.m4 (gl_FUNC_RANDOM_R): Don't set HAVE_RANDOM_H. Don't set
REPLACE_RANDOM_R on OSF/1.
* modules/stdlib-h (Makefile.am): Don't substitute HAVE_RANDOM_H.
2025-09-09 Bruno Haible <bruno@clisp.org>
+ random_r: Remove support for OSF/1.
+ * lib/stdlib.in.h: Don't include <random.h>.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Don't initialize HAVE_RANDOM_H.
+ * m4/random_r.m4 (gl_FUNC_RANDOM_R): Don't set HAVE_RANDOM_H. Don't set
+ REPLACE_RANDOM_R on OSF/1.
+ * modules/stdlib-h (Makefile.am): Don't substitute HAVE_RANDOM_H.
+
ptsname_r: Remove support for OSF/1.
* m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Remove test for non-standard
signature of ptsname_r.
#if @GNULIB_RANDOM_R@
-/* OSF/1 5.1 declares 'struct random_data' in <random.h>, which is included
- from <stdlib.h> if _REENTRANT is defined. Include it whenever we need
- 'struct random_data'. */
-# if @HAVE_RANDOM_H@
-# include <random.h>
-# endif
-
# include <stdint.h>
# if !@HAVE_STRUCT_RANDOM_DATA@
# random_r.m4
-# serial 5
+# serial 6
dnl Copyright (C) 2008-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT])
- if test $ac_cv_header_random_h = no; then
- HAVE_RANDOM_H=0
- fi
AC_CHECK_TYPES([struct random_data],
[], [HAVE_STRUCT_RANDOM_DATA=0],
#endif
]])
- dnl On AIX and OSF/1, these functions exist, but with different declarations.
+ dnl On AIX, these functions exist, but with different declarations.
dnl Override them all.
case "$host_os" in
- aix* | osf*)
+ aix*)
REPLACE_RANDOM_R=1
;;
*)
# stdlib_h.m4
-# serial 84
+# serial 85
dnl Copyright (C) 2007-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R])
HAVE_QSORT_R=1; AC_SUBST([HAVE_QSORT_R])
HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM])
- HAVE_RANDOM_H=1; AC_SUBST([HAVE_RANDOM_H])
HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R])
HAVE_REALLOCARRAY=1; AC_SUBST([HAVE_REALLOCARRAY])
HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH])
-e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
-e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \
-e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \
- -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
-e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
-e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \
-e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \