webkitgtk4: needs unistd.h for _SC_PHYS_PAGES etc

This commit is contained in:
sthen 2021-03-29 16:55:30 +00:00
parent 48183d8a94
commit 2f01bff760

View File

@ -1,15 +1,16 @@
$OpenBSD: patch-Source_WTF_wtf_RAMSize_cpp,v 1.6 2021/03/28 07:26:33 ajacoutot Exp $
$OpenBSD: patch-Source_WTF_wtf_RAMSize_cpp,v 1.7 2021/03/29 16:55:30 sthen Exp $
Index: Source/WTF/wtf/RAMSize.cpp
--- Source/WTF/wtf/RAMSize.cpp.orig
+++ Source/WTF/wtf/RAMSize.cpp
@@ -31,7 +31,9 @@
@@ -31,7 +31,10 @@
#if OS(WINDOWS)
#include <windows.h>
#elif defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC
-#if OS(LINUX)
+#if OS(OPENBSD)
+#include <sys/sysctl.h>
+#include <unistd.h>
+#elif OS(LINUX)
#include <sys/sysinfo.h>
#elif OS(UNIX)