summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2013-07-20 11:47:59 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2013-07-20 11:47:59 -0400
commit5ec78d75cea94fded1157f901f535b3da72a0e73 (patch)
treea84cb0be43a811212929606b58805e85af4d5207 /other
parent72ea431489f1eff56c7409c6cacd55f819684c55 (diff)
Fixed header inclusion for Windows
Diffstat (limited to 'other')
-rw-r--r--other/DHT_bootstrap.c4
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