gcompat: fix aarch64 build
This commit is contained in:
parent
19ae226ed9
commit
a7aa924e41
1 changed files with 17 additions and 0 deletions
17
srcpkgs/gcompat/patches/aarch64.patch
Normal file
17
srcpkgs/gcompat/patches/aarch64.patch
Normal 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
|
Loading…
Reference in a new issue