1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 09:47:17 +00:00

Fix for Windows (possibly)

Windows does not have <arpa/inet.h> so only include it when not Windows.
This commit is contained in:
llmII 2021-09-06 17:48:17 -05:00
parent 65a6945ea5
commit 8c938ceff9
No known key found for this signature in database
GPG Key ID: E3AD2E259F58A9A0

View File

@ -29,7 +29,6 @@
#ifdef JANET_NET #ifdef JANET_NET
#include <math.h> #include <math.h>
#include <arpa/inet.h>
#ifdef JANET_WINDOWS #ifdef JANET_WINDOWS
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>
@ -39,6 +38,7 @@
#pragma comment (lib, "Mswsock.lib") #pragma comment (lib, "Mswsock.lib")
#pragma comment (lib, "Advapi32.lib") #pragma comment (lib, "Advapi32.lib")
#else #else
#include <arpa/inet.h>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>