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=c987d95251b2645f7179ce664fe247ddc6ad5699;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 dc116bb2a2..217f5a81d5 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 8e0a609f1f..2291a7bbfb 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2004, 2006-2022 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2023 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -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