From: Bruno Haible Date: Wed, 5 Apr 2023 20:01:43 +0000 (+0200) Subject: random_r: Fix compilation error on Haiku. X-Git-Tag: v1.0~1500 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e330a98d3de0897b11970f1b1999b6279a95d169;p=gnulib.git random_r: Fix compilation error on Haiku. * lib/stdlib.in.h: For random_r, include always. * modules/random_r (Depends-on): Depend on 'stdint' always. --- diff --git a/ChangeLog b/ChangeLog index 41af1b70a1..9dc59e1a5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-05 Bruno Haible + + random_r: Fix compilation error on Haiku. + * lib/stdlib.in.h: For random_r, include always. + * modules/random_r (Depends-on): Depend on 'stdint' always. + 2023-04-05 Bruno Haible forkpty, openpty, login_tty: Fix link errors of the tests. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index c18a16bacd..f79c5a9d29 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -67,9 +67,7 @@ # include # endif -# if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@ -# include -# endif +# include # if !@HAVE_STRUCT_RANDOM_DATA@ /* Define 'struct random_data'. diff --git a/modules/random_r b/modules/random_r index 56c5a447e9..6ae9c6db58 100644 --- a/modules/random_r +++ b/modules/random_r @@ -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