mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-01 14:47:02 -05:00
Fix building on OpenBSD
- OpenBSD does not have SO_NOSIGPIPE - Enable some socket related code in AMMediaboard.cpp on OpenBSD
This commit is contained in:
@@ -802,7 +802,7 @@ const char* StrNetworkError()
|
||||
|
||||
bool SetPlatformSocketOptions(int fd [[maybe_unused]])
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
int opt_no_sigpipe = 1;
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &opt_no_sigpipe, sizeof(opt_no_sigpipe)) < 0)
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "VideoCommon/OnScreenDisplay.h"
|
||||
|
||||
#if defined(__linux__) or defined(__APPLE__) or defined(__FreeBSD__) or defined(__NetBSD__) or \
|
||||
defined(__HAIKU__)
|
||||
defined(__OpenBSD__) or defined(__HAIKU__)
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user