diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-20 11:12:39 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-20 11:12:39 -0700 |
commit | ae8814ce69d4b4e9696f204c6e8d2b937a0ec4f6 (patch) | |
tree | a84cb0be43a811212929606b58805e85af4d5207 | |
parent | 72ea431489f1eff56c7409c6cacd55f819684c55 (diff) | |
parent | 5ec78d75cea94fded1157f901f535b3da72a0e73 (diff) |
Merge pull request #63 from nurupo/master
Fixed header inclusion for Windows
-rw-r--r-- | other/DHT_bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index deecda87..f795482b 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -7,15 +7,15 @@ | |||
7 | * | 7 | * |
8 | * gcc -O2 -Wall -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c -lsodium DHT_bootstrap.c | 8 | * gcc -O2 -Wall -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c -lsodium DHT_bootstrap.c |
9 | */ | 9 | */ |
10 | #include <arpa/inet.h> | ||
11 | #include "../core/DHT.h" | ||
12 | 10 | ||
11 | #include "../core/DHT.h" | ||
13 | 12 | ||
14 | //Sleep function (x = milliseconds) | 13 | //Sleep function (x = milliseconds) |
15 | #ifdef WIN32 | 14 | #ifdef WIN32 |
16 | #define c_sleep(x) Sleep(1*x) | 15 | #define c_sleep(x) Sleep(1*x) |
17 | #else | 16 | #else |
18 | #include <unistd.h> | 17 | #include <unistd.h> |
18 | #include <arpa/inet.h> | ||
19 | #define c_sleep(x) usleep(1000*x) | 19 | #define c_sleep(x) usleep(1000*x) |
20 | #endif | 20 | #endif |
21 | 21 | ||