diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-09-13 22:17:57 -0400 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-09-13 22:17:57 -0400 |
commit | 2c722277ee06dbbd615118ac29cde0036ffae4df (patch) | |
tree | ca38d835d3e3c39c2784e4005b70167f30054af6 | |
parent | f88db708ac00c8e6b182c34de9f6663957373ee7 (diff) | |
parent | ca0ebe0f71b806f73a20d5d5e0da78aba5de42be (diff) |
Merge pull request #150 from ams-cs/master
Fix build using MinGW.
-rw-r--r-- | random_seed.c | 3 |
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() { |