aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/random.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-08-28 23:49:03 +0000
committerDavid Shaw <[email protected]>2003-08-28 23:49:03 +0000
commit6eb9d6297f79a73b4d911cdb472af69053e9098a (patch)
tree1a4b32d9530b3d2f372bb792518f9b83518cedc7 /cipher/random.c
parent* util.h: s/__MINGW32__/_WIN32/ to help building on native Windows (diff)
downloadgnupg-6eb9d6297f79a73b4d911cdb472af69053e9098a.tar.gz
gnupg-6eb9d6297f79a73b4d911cdb472af69053e9098a.zip
* idea-stub.c, random.c; s/__MINGW32__/_WIN32/ to help building on native
Windows compilers. Requested by Brian Gladman. From Werner on stable branch.
Diffstat (limited to '')
-rw-r--r--cipher/random.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cipher/random.c b/cipher/random.c
index b0e2785b0..baee65c49 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -1,5 +1,6 @@
/* random.c - random number generator
- * Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002,
+ * 2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -33,7 +34,9 @@
#include <errno.h>
#include <string.h>
#include <time.h>
+#ifndef _WIN32
#include <sys/time.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -50,7 +53,7 @@
#ifdef HAVE_GETRUSAGE
#include <sys/resource.h>
#endif
-#ifdef __MINGW32__
+#ifdef _WIN32
#include <process.h>
#endif
#include "util.h"