Make swaponoff compile cleanly under both libc5 and libc6.
authorEric Andersen <andersen@codepoet.org>
Mon, 19 Jun 2000 18:25:49 +0000 (18:25 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 19 Jun 2000 18:25:49 +0000 (18:25 -0000)
 -Erik

swaponoff.c
util-linux/swaponoff.c

index 83aadd08a3031e2bd72d894f716ea911b50a63f4..223436c29a14ad9b36a2b918c73504519d69d6ce 100644 (file)
 #include "internal.h"
 #include <stdio.h>
 #include <sys/mount.h>
-#include <sys/swap.h>
 #include <mntent.h>
 #include <dirent.h>
-#include <fstab.h>
 #include <errno.h>
+#include <linux/unistd.h>
+
+_syscall2(int, swapon, const char *, path, int, flags);
+_syscall1(int, swapoff, const char *, path);
 
 
 static int whichApp;
index 83aadd08a3031e2bd72d894f716ea911b50a63f4..223436c29a14ad9b36a2b918c73504519d69d6ce 100644 (file)
 #include "internal.h"
 #include <stdio.h>
 #include <sys/mount.h>
-#include <sys/swap.h>
 #include <mntent.h>
 #include <dirent.h>
-#include <fstab.h>
 #include <errno.h>
+#include <linux/unistd.h>
+
+_syscall2(int, swapon, const char *, path, int, flags);
+_syscall1(int, swapoff, const char *, path);
 
 
 static int whichApp;