summaryrefslogtreecommitdiff
path: root/src/libstddjb/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/touch.c')
-rw-r--r--src/libstddjb/touch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstddjb/touch.c b/src/libstddjb/touch.c
index dfc3525..57e0d0d 100644
--- a/src/libstddjb/touch.c
+++ b/src/libstddjb/touch.c
@@ -1,12 +1,12 @@
/* ISC license. */
#include <skalibs/sysdeps.h>
-#include <skalibs/djbunix.h>
#ifdef SKALIBS_HASFUTIMENS
#include <time.h>
#include <sys/stat.h>
+#include <skalibs/djbunix.h>
int touch (char const *file)
{
@@ -20,7 +20,9 @@ int touch (char const *file)
#else
#ifdef SKALIBS_HASFUTIMES
+#include <skalibs/nonposix.h>
#include <sys/time.h>
+#include <skalibs/djbunix.h>
int touch (char const *file)
{
@@ -34,6 +36,7 @@ int touch (char const *file)
#else
#include <sys/time.h>
+#include <skalibs/djbunix.h>
int touch (char const *file)
{