From 432f9b031797ac77c4911b1062c4a172831b499c Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 21 Jul 2021 17:59:18 -0400 Subject: [PATCH] no netinet/in.h on windows --- include/notcurses/notcurses.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 517f4113a..c44313fbd 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -16,18 +16,20 @@ // then reverse that, guaranteeing LE. htole(x) == ltohe(x). #if defined(__linux__) || defined(__gnu_hurd__) #include +#include #define htole(x) (__bswap_32(htonl(x))) #elif defined(__APPLE__) +#include #include #define htole(x) (OSSwapInt32(htonl(x))) #elif defined(__MINGW64__) #include #define htole(x) (bswap32(htonl(x))) #else +#include #include #define htole(x) (bswap32(htonl(x))) #endif -#include #include #include