summaryrefslogtreecommitdiff
path: root/cipher/random.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-12-18 19:02:48 +0000
committerWerner Koch <wk@gnupg.org>2006-12-18 19:02:48 +0000
commitd074ccec673b8c0460ad53a9bb5235ec8d081736 (patch)
treeb3c4248daae41c9b2b102bd4bdd2c61ed9834459 /cipher/random.c
parent37ba2efc88d5c719f430fee44165e729145df7ee (diff)
downloadlibgcrypt-d074ccec673b8c0460ad53a9bb5235ec8d081736.tar.gz
* rndlinux.c (set_cloexec_flag): New.
(open_device): Set close-on-exit flags. Suggested by Max Kellermann. Fixes Debian#403613. Cleaned up last Makefile changes.
Diffstat (limited to 'cipher/random.c')
-rw-r--r--cipher/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/random.c b/cipher/random.c
index 528111af..a18f57cd 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -43,7 +43,7 @@
#include <sys/times.h>
#endif
#ifdef HAVE_GETTIMEOFDAY
-#include <sys/times.h>
+#include <sys/time.h>
#endif
#ifdef HAVE_GETRUSAGE
#include <sys/resource.h>