Merge pull request #14867 from brad0/openbsd_build_fix

Fix building on OpenBSD
This commit is contained in:
JosJuice
2026-09-20 10:08:10 +02:00
committed by GitHub
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>