This commit is contained in:
Gerolf Ziegenhain 2016-10-04 17:54:36 +02:00
parent 15ab7fbbcc
commit 57f6c84f88
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <unistd.h> // for usleep()
// Detect OSX // Detect OSX
@ -97,7 +98,8 @@ void *get_in_addr(struct sockaddr *sa)
void msleep(int d){ void msleep(int d)
{
usleep(d*1000); usleep(d*1000);
} }

View File

@ -1,5 +1,5 @@
void current_utc_time(struct timespec *ts); void current_utc_time(struct timespec *ts);
long fastclock(void); long fastclock(void);
int kbhit (void); int kbhit (void);
void *get_in_addr(struct sockaddr *sa);
void msleep(int d); void msleep(int d);
void *get_in_addr(struct sockaddr *sa);