aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-06-16 14:19:56 -0500
committerRob Landley <rob@landley.net>2012-06-16 14:19:56 -0500
commit628eb9b22032fb0f2e343f43efa60ec52b01d345 (patch)
tree47e440d45804e876004b98276cbfb620bb8017c3 /toys.h
parentef7e7ebaab86dae90b8fabb6a5dbea08a26db9ba (diff)
downloadtoybox-628eb9b22032fb0f2e343f43efa60ec52b01d345.tar.gz
More header fiddling: crypt.h is silly, SUSv4 requires crypt() to be prototyped in unistd.h. The fact glibc refuses to do so without a wacky #define is a glibc bug, treat it as such.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/toys.h b/toys.h
index 34cf035f..a3339868 100644
--- a/toys.h
+++ b/toys.h
@@ -8,7 +8,6 @@
#include "lib/portability.h"
-#include <crypt.h>
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
@@ -37,18 +36,16 @@
#include <sys/statvfs.h>
#include <sys/sysinfo.h>
#include <sys/swap.h>
+#include <sys/times.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <syslog.h>
+#include <time.h>
#include <unistd.h>
#include <utime.h>
#include <utmpx.h>
-#undef _XOPEN_SOURCE
-#define _XOPEN_SOURCE 600
-#include <time.h>
-
#include "lib/lib.h"
#include "toys/e2fs.h"