[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27462 - in gnunet: . src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27462 - in gnunet: . src/util |
Date: |
Tue, 18 Jun 2013 04:49:20 +0200 |
Author: amatus
Date: 2013-06-18 04:49:20 +0200 (Tue, 18 Jun 2013)
New Revision: 27462
Modified:
gnunet/configure.ac
gnunet/src/util/crypto_random.c
Log:
Generalize condition for missing random/srandom.
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2013-06-17 16:38:03 UTC (rev 27461)
+++ gnunet/configure.ac 2013-06-18 02:49:20 UTC (rev 27462)
@@ -799,7 +799,7 @@
AC_HEADER_SYS_WAIT
AC_TYPE_OFF_T
AC_TYPE_UID_T
-AC_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])
+AC_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])
# restore LIBS
LIBS=$SAVE_LIBS
Modified: gnunet/src/util/crypto_random.c
===================================================================
--- gnunet/src/util/crypto_random.c 2013-06-17 16:38:03 UTC (rev 27461)
+++ gnunet/src/util/crypto_random.c 2013-06-18 02:49:20 UTC (rev 27462)
@@ -37,7 +37,7 @@
/* TODO: ndurner, move this to plibc? */
/* The code is derived from glibc, obviously */
-#if MINGW
+#if !HAVE_RANDOM || !HAVE_SRANDOM
#ifdef RANDOM
#undef RANDOM
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27462 - in gnunet: . src/util,
gnunet <=