summaryrefslogtreecommitdiff
path: root/libgcompat/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/sysctl.c')
-rw-r--r--libgcompat/sysctl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libgcompat/sysctl.c b/libgcompat/sysctl.c
index 5671055..a14c2b8 100644
--- a/libgcompat/sysctl.c
+++ b/libgcompat/sysctl.c
@@ -1,9 +1,9 @@
-#include <errno.h>
-#include <string.h>
-#include <unistd.h>
+#include <unistd.h> /* size_t */
#include <sys/syscall.h>
+#ifdef SYS__sysctl
+
struct __sysctl_args {
int *name;
int nlen;
@@ -26,3 +26,5 @@ int sysctl (int *name, int nlen, void *oldval, size_t *oldlenp, void *newval, si
return syscall(SYS__sysctl, &args);
}
+
+#endif /* SYS__sysctl */