core: fix header includes for bsd

This commit is contained in:
kojin 2021-10-03 16:33:58 -04:00 committed by Kojin
parent a94a324423
commit 86278b75e4
8 changed files with 26 additions and 8 deletions

View File

@ -19,7 +19,7 @@
//#include <winsock2.h>
#include <Winioctl.h>
#include <windows.h>
#elif defined(__linux__) || defined(__APPLE__)
#else
#include <sys/types.h>
#include <sys/mman.h>
#include <err.h>

View File

@ -28,6 +28,10 @@
#include <arpa/inet.h>
#endif
#if defined(__FreeBSD__)
#include <sys/socket.h>
#endif
void SaveDnsHosts()
{
std::unique_ptr<wxFileConfig> hini(OpenFileConfig(EmuFolders::Settings.Combine(wxString("DEV9Hosts.ini")).GetFullPath()));

View File

@ -23,6 +23,11 @@
#include <arpa/inet.h>
#endif
#if defined(__FreeBSD__)
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#include "DHCP_Server.h"
#include "DEV9/PacketReader/IP/UDP/UDP_Packet.h"
#include "DEV9/PacketReader/IP/UDP/DHCP/DHCP_Packet.h"

View File

@ -29,6 +29,10 @@
#include <netdb.h>
#endif
#if defined(__FreeBSD__)
#include <netinet/in.h>
#endif
#include "DNS_Server.h"
#include "DEV9/PacketReader/IP/UDP/UDP_Packet.h"
#include "DEV9/PacketReader/IP/UDP/DNS/DNS_Packet.h"

View File

@ -30,6 +30,10 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#if defined(__FreeBSD__)
#include <sys/socket.h>
#endif
void SaveConf()
{
xmlDocPtr doc = NULL; /* document pointer */

View File

@ -22,10 +22,11 @@
#include "Global.h"
#include "SndOut.h"
#if defined(__linux__) || defined(__APPLE__)
#include "Linux/Dialogs.h"
#elif defined(_WIN32)
#if defined(_WIN32)
#include "Windows/Dialogs.h"
#else // BSD, Macos
#include "Linux/Dialogs.h"
#endif
#include <memory>

View File

@ -17,11 +17,11 @@
#include "Global.h"
#include "spu2.h"
#include "Dma.h"
#if defined(__linux__) || defined(__APPLE__)
#if defined(_WIN32)
#include "Windows/Dialogs.h"
#else // BSD, Macos
#include "Linux/Dialogs.h"
#include "Linux/Config.h"
#elif defined(_WIN32)
#include "Windows/Dialogs.h"
#endif
#include "R3000A.h"
#include "common/pxStreams.h"

View File

@ -15,7 +15,7 @@
#include "PrecompiledHeader.h"
#include "SPU2/Config.h"
#if defined(__linux__) || defined(__APPLE__)
#if !defined(_WIN32) // BSD, Macos
#include "SPU2/Linux/Config.h"
#endif
#include "SPU2/Global.h"