summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoachim Wiberg <troglobit@gmail.com>2022-05-30 05:35:06 +0200
committerJoachim Wiberg <troglobit@gmail.com>2022-05-30 05:35:06 +0200
commitc78f381d2248f3115cc842ef83794eb40159a583 (patch)
treeba6fef37a9a55ad9bc86bb9c48ce5720ec7a12ad /include
parent8db2b67004db0a1630c6cb49b8eaec5ee02c9a6c (diff)
downloadlibnet-c78f381d2248f3115cc842ef83794eb40159a583.tar.gz
Fix #139: ftbfs on FreeBSD
stdint.h is required to get UINT32_MAX et al on FreeBSD, and possibly other *BSD as well, not just Win32. So moving this include to the common include section. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libnet.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libnet.h.in b/include/libnet.h.in
index 5fe2ebf..6e1fbe9 100644
--- a/include/libnet.h.in
+++ b/include/libnet.h.in
@@ -54,6 +54,7 @@ extern "C" {
#include <string.h>
#include <fcntl.h>
#include <signal.h>
+#include <stdint.h>
#include <stdlib.h>
#include <sys/stat.h>
@@ -82,7 +83,6 @@ extern "C" {
#if (__CYGWIN__)
#include <sys/socket.h>
#endif
-#include <stdint.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <winsock2.h>