diff options
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index e2e0bff4..69cc23d8 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* network.h | 1 | /* network.c |
2 | * | 2 | * |
3 | * Functions for the core networking. | 3 | * Functions for the core networking. |
4 | * | 4 | * |
@@ -36,10 +36,6 @@ | |||
36 | #include "network.h" | 36 | #include "network.h" |
37 | #include "util.h" | 37 | #include "util.h" |
38 | 38 | ||
39 | #ifndef IPV6_V6ONLY | ||
40 | #define IPV6_V6ONLY 27 | ||
41 | #endif | ||
42 | |||
43 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 39 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
44 | 40 | ||
45 | static const char *inet_ntop(sa_family_t family, void *addr, char *buf, size_t bufsize) | 41 | static const char *inet_ntop(sa_family_t family, void *addr, char *buf, size_t bufsize) |
@@ -446,8 +442,14 @@ static int at_startup(void) | |||
446 | return 0; | 442 | return 0; |
447 | 443 | ||
448 | #ifndef VANILLA_NACL | 444 | #ifndef VANILLA_NACL |
445 | |||
446 | #ifdef USE_RANDOMBYTES_STIR | ||
447 | randombytes_stir(); | ||
448 | #else | ||
449 | sodium_init(); | 449 | sodium_init(); |
450 | #endif | 450 | #endif /*USE_RANDOMBYTES_STIR*/ |
451 | |||
452 | #endif/*VANILLA_NACL*/ | ||
451 | 453 | ||
452 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 454 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
453 | WSADATA wsaData; | 455 | WSADATA wsaData; |