mirror of https://github.com/PCSX2/pcsx2.git
core: fix header includes for bsd
This commit is contained in:
parent
a94a324423
commit
86278b75e4
|
@ -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>
|
||||
|
|
|
@ -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()));
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue