]> Savannah Git Hosting - gnulib.git/commitdiff
random_r: Fix compilation error on Haiku.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Apr 2023 20:01:43 +0000 (22:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 10:46:35 +0000 (12:46 +0200)
* lib/stdlib.in.h: For random_r, include <stdint.h> always.
* modules/random_r (Depends-on): Depend on 'stdint' always.

ChangeLog
lib/stdlib.in.h
modules/random_r

index 080f1598e57d5179068c86ce7ad6a73f5ac1c543..2127422bdd4cfb45e134c4718c1efb6ba8367150 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-05  Bruno Haible  <bruno@clisp.org>
+
+       random_r: Fix compilation error on Haiku.
+       * lib/stdlib.in.h: For random_r, include <stdint.h> always.
+       * modules/random_r (Depends-on): Depend on 'stdint' always.
+
 2023-04-05  Bruno Haible  <bruno@clisp.org>
 
        forkpty, openpty, login_tty: Fix link errors of the tests.
index b79e5f709657b7a650e77d2af910e313cc00828a..2291a7bbfb81c923aa380b4d09a8be856c5bef97 100644 (file)
@@ -67,9 +67,7 @@
 #  include <random.h>
 # endif
 
-# if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@
-#  include <stdint.h>
-# endif
+# include <stdint.h>
 
 # if !@HAVE_STRUCT_RANDOM_DATA@
 /* Define 'struct random_data'.
index 56c5a447e9c3e702f6d48ad830aa5b191ae5908f..6ae9c6db58a740df8562fdeebc5485d780b6aef1 100644 (file)
@@ -9,7 +9,7 @@ Depends-on:
 c99
 libc-config     [test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1]
 stdlib
-stdint          [test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1]
+stdint
 
 configure.ac:
 gl_FUNC_RANDOM_R