diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-08-14 22:51:36 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-08-14 22:51:36 +0000 |
commit | 864c28e135b9aa6b66b1ccc36495a0d6be8b885e (patch) | |
tree | 82c8265f8c4d153b505b42446f8566d038ff3760 /libgfortran/configure | |
parent | aa7df52e4f86b6a92ab236895a85ce2cb7b1a98b (diff) | |
download | gcc-864c28e135b9aa6b66b1ccc36495a0d6be8b885e.zip gcc-864c28e135b9aa6b66b1ccc36495a0d6be8b885e.tar.gz gcc-864c28e135b9aa6b66b1ccc36495a0d6be8b885e.tar.bz2 |
Include <sys/random.h> for getentropy on Solaris
* configure.ac: Check for <sys/random.h>.
* configure, config.h.in: Regenerate.
* intrinsics/random.c [HAVE_SYS_RANDOM_H]: Include <sys/random.h>.
From-SVN: r263543
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-x | libgfortran/configure | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index 42b4c0b..a583b67 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -2547,6 +2547,7 @@ $as_echo "$as_me: creating cache $cache_file" >&6;} fi as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/random.h" as_fn_append ac_header_list " sys/time.h" as_fn_append ac_header_list " sys/times.h" as_fn_append ac_header_list " sys/resource.h" @@ -12513,7 +12514,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12516 "configure" +#line 12517 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12619,7 +12620,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12622 "configure" +#line 12623 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16184,6 +16185,8 @@ done + + inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` acx_cv_header_stdint=stddef.h |