diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-10-03 17:12:15 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-10-03 17:12:15 +0200 |
commit | b7f14ee9f8530af66a6012cd904524f2effe31ef (patch) | |
tree | 6e4ba4b77ff4f637bd49814fab5d82cbff5242f8 | |
parent | 97eae5bb258a7cddf2b0b9fe2294bcc36cecaea4 (diff) | |
download | gnutls-b7f14ee9f8530af66a6012cd904524f2effe31ef.tar.gz |
fix compilation in windows
-rw-r--r-- | lib/nettle/egd.c | 5 | ||||
-rw-r--r-- | lib/nettle/rnd.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/nettle/egd.c b/lib/nettle/egd.c index f472aed8c4..1b67e42e3f 100644 --- a/lib/nettle/egd.c +++ b/lib/nettle/egd.c @@ -19,6 +19,9 @@ */ #include <config.h> + +#ifndef _WIN32 + #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -268,3 +271,5 @@ restart: return _length; /* success */ } + +#endif diff --git a/lib/nettle/rnd.c b/lib/nettle/rnd.c index b3e18ac1f6..b01ac08f65 100644 --- a/lib/nettle/rnd.c +++ b/lib/nettle/rnd.c @@ -55,6 +55,7 @@ static void *rnd_mutex; #ifdef _WIN32 #include <windows.h> +#include <wincrypt.h> #define DEVICE_READ_SIZE 16 #define DEVICE_READ_SIZE_MAX 32 |