* 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>
+
+ 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.
# 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'.
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