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:
parent
65a6945ea5
commit
8c938ceff9
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user