bomi: fix build w/ glibc-2.32

This commit is contained in:
Jürgen Buchmüller 2021-01-16 10:54:00 +01:00
parent b43eb4f27a
commit 21ae14e59a

View file

@ -0,0 +1,22 @@
--- src/bomi/os/mac.mm 2015-05-20 11:31:58.000000000 +0200
+++ src/bomi/os/mac.mm 2021-01-16 10:51:12.701668482 +0100
@@ -274,7 +274,7 @@
#ifdef Q_OS_MAC
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <mach/mach_host.h>
#include <mach/task.h>
#include <libproc.h>
--- src/bomi/os/x11.cpp 2015-05-20 11:31:58.000000000 +0200
+++ src/bomi/os/x11.cpp 2021-01-16 10:51:04.559292267 +0100
@@ -15,7 +15,7 @@
#include <fcntl.h>
#include <time.h>
#include <sys/time.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <sys/types.h>
#include <xcb/xcb.h>
#include <xcb/randr.h>