aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-28 03:29:33 -0600
committerRob Landley <rob@landley.net>2007-12-28 03:29:33 -0600
commit07c78d338b1adf0c3d32c3670f21e9b066d740da (patch)
treea27378287b8f67d881014d2e6ca8cd92e0130e09 /toys.h
parent5a0660f513e008192860dc71988e561386c5ecdb (diff)
downloadtoybox-07c78d338b1adf0c3d32c3670f21e9b066d740da.tar.gz
Make touch work reliably when file doesn't exist and clean up headers a bit.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/toys.h b/toys.h
index e78aea55..5ccec7d3 100644
--- a/toys.h
+++ b/toys.h
@@ -31,8 +31,11 @@
#include <sys/statvfs.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <time.h>
#include <unistd.h>
+#include <utime.h>
+
+#define _XOPEN_SOURCE 600
+#include <time.h>
#include "lib/lib.h"
#include "toys/e2fs.h"