diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 14:26:19 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 14:26:19 +0200 |
commit | e7f723539d39f20092aabfb5b51826807e016fe3 (patch) | |
tree | 88c887012ba3fbf1b9b9c1208453a98568cbad3b /src/common/ssl.c | |
parent | 4cae471af3a4d8e9c7457f76186da809879f566f (diff) |
Some aid for compiler warnings
Diffstat (limited to 'src/common/ssl.c')
-rw-r--r-- | src/common/ssl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c index daa7416b..04fb6ac5 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -20,12 +20,17 @@ #include "inet.h" /* make it first to avoid macro redefinitions */ #include <openssl/ssl.h> /* SSL_() */ #include <openssl/err.h> /* ERR_() */ -#include <time.h> /* asctime() */ +#ifdef WIN32 +#include <openssl/rand.h> /* RAND_seed() */ +#endif +#include <time.h> /* asctime() */ #include <string.h> /* strncpy() */ -#include "ssl.h" /* struct cert_info */ +#include "ssl.h" /* struct cert_info */ #include "../../config.h" /* HAVE_SNPRINTF */ #ifndef HAVE_SNPRINTF +#include <glib.h> +#include <glib/gprintf.h> #define snprintf g_snprintf #endif |