Skip to content

Commit 9ac5a01

Browse files
committed
Move types.h include before ifaddres.h for u_int declaration
1 parent be5d37c commit 9ac5a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <windows.h>
2727
#include <ws2tcpip.h>
2828
#else
29+
#include <sys/types.h>
2930
#include <arpa/inet.h>
3031
#include <ifaddrs.h>
3132
#include <limits.h>
@@ -35,7 +36,6 @@
3536
#include <sys/fcntl.h>
3637
#include <sys/mman.h>
3738
#include <sys/socket.h>
38-
#include <sys/types.h>
3939
#include <unistd.h>
4040
#endif
4141

0 commit comments

Comments
 (0)