Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index bbc051f6b6ffe8395b157a756206d8191e709ac2..2a64b149d48555480b9bedaf7937788a4f36be50 100644 (file)
--- a/tty.c
+++ b/tty.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include <sys/types.h>
 
 extern int tty_main(int argc, char **argv)
@@ -38,5 +40,5 @@ extern int tty_main(int argc, char **argv)
                else
                        puts("not a tty");
        }
-       return(isatty(0) ? TRUE : FALSE);
+       return(isatty(0) ? EXIT_SUCCESS : EXIT_FAILURE);
 }