Commit b1edade4 authored by Youness Alaoui's avatar Youness Alaoui

include sys/time.h in timer.h instead of timer.c since we need it for the struct timeval

parent 7120cdbd
...@@ -41,16 +41,12 @@ ...@@ -41,16 +41,12 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#else #else
#include <sys/time.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
#include "timer.h" #include "timer.h"
#include <stdlib.h> /* div() */ #include <stdlib.h> /* div() */
#include <time.h>
#include <sys/types.h>
/* /*
......
...@@ -102,9 +102,11 @@ ...@@ -102,9 +102,11 @@
#include <winsock2.h> #include <winsock2.h>
#else #else
# include <sys/types.h> # include <sys/types.h>
# include <sys/time.h>
# include <time.h> # include <time.h>
#endif #endif
/** /**
* StunTimer: * StunTimer:
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment