aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rand-unix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-10-06 12:10:02 +0000
committerWerner Koch <[email protected]>1998-10-06 12:10:02 +0000
commitf04db5631158b3856ea11f300d02a03c7e15ede4 (patch)
tree6cd9c2416b65118f4da0aeceb6be2a7f1763e258 /cipher/rand-unix.c
parent*** empty log message *** (diff)
downloadgnupg-f04db5631158b3856ea11f300d02a03c7e15ede4.tar.gz
gnupg-f04db5631158b3856ea11f300d02a03c7e15ede4.zip
windoze version works again
Diffstat (limited to 'cipher/rand-unix.c')
-rw-r--r--cipher/rand-unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/rand-unix.c b/cipher/rand-unix.c
index 855b23b8e..33f964d58 100644
--- a/cipher/rand-unix.c
+++ b/cipher/rand-unix.c
@@ -30,7 +30,7 @@
#ifdef HAVE_GETHRTIME
#include <sys/times.h>
#endif
-#ifndef HAVE_GETTIMEOFTIME
+#ifdef HAVE_GETTIMEOFDAY
#include <sys/times.h>
#endif
#ifdef HAVE_GETRUSAGE
@@ -65,7 +65,7 @@ fast_random_poll()
tv = gethrtime();
add_randomness( &tv, sizeof(tv), 1 );
}
- #elif HAVE_GETTIMEOFTIME
+ #elif HAVE_GETTIMEOFDAY
{ struct timeval tv;
if( gettimeofday( &tv, NULL ) )
BUG();