Skip to content

Commit b82129a

Browse files
committed
mdnsd: move gettimeofday impl into WIN32 ifdef
Fixes 8b5f1f3
1 parent ac23958 commit b82129a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mdnsd.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
#ifdef WIN32
55
// for the inet related functions
66
#include <ws2tcpip.h>
7-
#else
8-
#include <netinet/in.h>
9-
#include <arpa/inet.h>
10-
#include <sys/time.h>
11-
#endif
127
// for gettimeofday
138
#include <fcntl.h>
149
#include <conio.h>
@@ -20,6 +15,11 @@ static void gettimeofday(struct timeval* tv,char* dummy)
2015
tv->tv_sec=t.wHour*3600+t.wMinute*60+t.wSecond;
2116
tv->tv_usec=t.wMilliseconds*1000;
2217
}
18+
#else
19+
#include <netinet/in.h>
20+
#include <arpa/inet.h>
21+
#include <sys/time.h>
22+
#endif
2323
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
2424

2525
// size of query/publish hashes

0 commit comments

Comments
 (0)