Add NetBSD support

This commit is contained in:
David Carlier authored and Léo Lam committed 2020-12-15 02:34:25 +01:00
1 parent ed1564515b
commit 2c355b81f2
8 files changed
+43 -14

No files matched your search

+1 -1
View File
@@ -383,7 +383,7 @@ private:
bool m_bba_link_up = false;
bool m_bba_failure_notified = false;
#if defined(WIN32) || defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__OpenBSD__)
defined(__OpenBSD__) || defined(__NetBSD__)
sf::UdpSocket m_sf_socket;
sf::IpAddress m_sf_recipient_ip;
char m_in_frame[9004];
+2 -1
View File
@@ -15,7 +15,8 @@ typedef pollfd pollfd_t;
#define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x))
#define FREE(x) HeapFree(GetProcessHeap(), 0, (x))
#elif defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__HAIKU__)
#elif defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__NetBSD__) or \
defined(__HAIKU__)
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/ioctl.h>
+1 -1
View File
@@ -17,7 +17,7 @@
#include "Core/MachineContext.h"
#include "Core/PowerPC/JitInterface.h"
#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <signal.h>
#endif
#ifndef _WIN32