From ca0ebe0f71b806f73a20d5d5e0da78aba5de42be Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Mon, 4 Aug 2014 11:44:25 +0100 Subject: Fix build using MinGW. MinGW requires wincrypt.h. GCC does not support #pragma comment, which trips Werror. --- random_seed.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/random_seed.c b/random_seed.c index 3b520d4..c47d271 100644 --- a/random_seed.c +++ b/random_seed.c @@ -181,7 +181,10 @@ static int get_dev_random_seed() #define HAVE_CRYPTGENRANDOM 1 #include +#include +#ifndef __GNUC__ #pragma comment(lib, "advapi32.lib") +#endif static int get_cryptgenrandom_seed() { -- cgit v1.2.3