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