just include fcntl.h not sys/fcntl.h
[oweals/busybox.git] / util-linux / pivot_root.c
index ba26b9c58b1794dd7395863db0c003f596dad00e..c86e73cc184dbd07f0d8b9b3ab514a3ccf4a875f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * busyboxed by Evin Robertson
  * pivot_root syscall stubbed by Erik Andersen, so it will compile
- *     regardless of the kernel being used. 
+ *     regardless of the kernel being used.
  */
 #include <stdlib.h>
 #include <stdio.h>
@@ -16,10 +16,10 @@ extern int pivot_root(const char * new_root,const char * put_old);
 int pivot_root_main(int argc, char **argv)
 {
     if (argc != 3)
-        show_usage();
+       bb_show_usage();
 
        if (pivot_root(argv[1],argv[2]) < 0)
-               perror_msg_and_die("pivot_root");
+               bb_perror_msg_and_die("pivot_root");
 
     return EXIT_SUCCESS;