From: Bruno Haible Date: Wed, 5 Apr 2023 20:01:43 +0000 (+0200) Subject: random_r: Fix compilation error on Haiku. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=873fb51d98f36b9358861e7e759f6cc5ceba189f;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 080f1598e5..2127422bdd 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 b79e5f7096..2291a7bbfb 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