summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/swapon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/swapon.c b/libc/sysdeps/linux/common/swapon.c
index d5a5c235a..f8c1e6a2b 100644
--- a/libc/sysdeps/linux/common/swapon.c
+++ b/libc/sysdeps/linux/common/swapon.c
@@ -8,5 +8,10 @@
*/
#include "syscalls.h"
+
+#ifdef __NR_swapon
+
#include <sys/swap.h>
_syscall2(int, swapon, const char *, path, int, swapflags);
+
+#endif