]> 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 11:04:25 +0000 (13:04 +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 dc116bb2a285ae96668ef7ff31769844946e016f..217f5a81d5a8fbc1f0ae16ec721db8320df0ceb9 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 8e0a609f1f7c933c060308e03c040967ae6d181f..2291a7bbfb81c923aa380b4d09a8be856c5bef97 100644 (file)
@@ -1,6 +1,6 @@
 /* A GNU-like <stdlib.h>.
 
-   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 <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