gcompat: fix aarch64 build

This commit is contained in:
Michael Gehring 2017-10-19 10:52:47 +00:00
parent 19ae226ed9
commit a7aa924e41

View file

@ -0,0 +1,17 @@
--- libgcompat/sysctl.c.orig 2017-10-19 10:51:44.000000000 +0000
+++ libgcompat/sysctl.c 2017-10-19 10:51:55.988937813 +0000
@@ -4,6 +4,8 @@
#include <sys/syscall.h>
+#ifdef SYS__sysctl // deprecated sysctl not available on aarch64
+
struct __sysctl_args {
int *name;
int nlen;
@@ -26,3 +28,5 @@
return syscall(SYS__sysctl, &args);
}
+
+#endif