aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2013-06-18 02:49:20 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2013-06-18 02:49:20 +0000
commitd988c24f3d7509c1bc6a432766e7a0753760b1b1 (patch)
treed483fc8a598e4661d1782980a0c98d292a7731b7
parent60fabb656fc659b254c2e542b0288d928ae191d8 (diff)
downloadgnunet-d988c24f3d7509c1bc6a432766e7a0753760b1b1.tar.gz
gnunet-d988c24f3d7509c1bc6a432766e7a0753760b1b1.zip
Generalize condition for missing random/srandom.
-rw-r--r--configure.ac2
-rw-r--r--src/util/crypto_random.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bb02ab893..2067742c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -799,7 +799,7 @@ AC_FUNC_VPRINTF
799AC_HEADER_SYS_WAIT 799AC_HEADER_SYS_WAIT
800AC_TYPE_OFF_T 800AC_TYPE_OFF_T
801AC_TYPE_UID_T 801AC_TYPE_UID_T
802AC_CHECK_FUNCS([atoll stat64 strnlen mremap getrlimit setrlimit sysconf initgroups strndup gethostbyname2 getpeerucred getpeereid setresuid $funcstocheck getifaddrs freeifaddrs getresgid mallinfo malloc_size malloc_usable_size getrusage]) 802AC_CHECK_FUNCS([atoll stat64 strnlen mremap getrlimit setrlimit sysconf initgroups strndup gethostbyname2 getpeerucred getpeereid setresuid $funcstocheck getifaddrs freeifaddrs getresgid mallinfo malloc_size malloc_usable_size getrusage random srandom])
803 803
804# restore LIBS 804# restore LIBS
805LIBS=$SAVE_LIBS 805LIBS=$SAVE_LIBS
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c
index 8ba6641b9..ca0d7ccc0 100644
--- a/src/util/crypto_random.c
+++ b/src/util/crypto_random.c
@@ -37,7 +37,7 @@
37 37
38/* TODO: ndurner, move this to plibc? */ 38/* TODO: ndurner, move this to plibc? */
39/* The code is derived from glibc, obviously */ 39/* The code is derived from glibc, obviously */
40#if MINGW 40#if !HAVE_RANDOM || !HAVE_SRANDOM
41#ifdef RANDOM 41#ifdef RANDOM
42#undef RANDOM 42#undef RANDOM
43#endif 43#endif