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:
Brad Smith
2026-09-15 01:20:49 -04:00
parent c185d27ede
commit 191292946f
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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>