mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-28 05:06:57 -05:00
Merge pull request #14867 from brad0/openbsd_build_fix
Fix building 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