-
-static int whichApp;
-static const char *appName;
-
-static const char swapoff_usage[] =
- "swapoff [OPTION] [device]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nStop swapping virtual memory pages on the given device.\n\n"
- "Options:\n"
- "\t-a\tStop swapping on all swap devices\n"
-#endif
- ;
-
-static const char swapon_usage[] =
- "swapon [OPTION] [device]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nStart swapping virtual memory pages on the given device.\n\n"
- "Options:\n"
- "\t-a\tStart swapping on all swap devices\n"
+#if __GNU_LIBRARY__ < 5
+/* libc5 doesn't have sys/swap.h, define these here. */
+extern int swapon (__const char *__path, int __flags);
+extern int swapoff (__const char *__path);
+#else
+#include <sys/swap.h>