summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2014-09-13 22:17:57 -0400
committerEric Haszlakiewicz <erh+git@nimenees.com>2014-09-13 22:17:57 -0400
commit2c722277ee06dbbd615118ac29cde0036ffae4df (patch)
treeca38d835d3e3c39c2784e4005b70167f30054af6
parentf88db708ac00c8e6b182c34de9f6663957373ee7 (diff)
parentca0ebe0f71b806f73a20d5d5e0da78aba5de42be (diff)
Merge pull request #150 from ams-cs/master
Fix build using MinGW.
-rw-r--r--random_seed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/random_seed.c b/random_seed.c
index 4f6dbb2..f671929 100644
--- a/random_seed.c
+++ b/random_seed.c
@@ -178,7 +178,10 @@ static int get_dev_random_seed()
#define HAVE_CRYPTGENRANDOM 1
#include <windows.h>
+#include <wincrypt.h>
+#ifndef __GNUC__
#pragma comment(lib, "advapi32.lib")
+#endif
static int get_cryptgenrandom_seed()
{