void-packages/srcpkgs/gcompat/patches/aarch64.patch

18 lines
359 B
Diff

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