diff options
-rw-r--r-- | coreutils/touch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/touch.c b/coreutils/touch.c index ec12eb7cf..78100ba1d 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -127,6 +127,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv) | |||
127 | #endif | 127 | #endif |
128 | ); | 128 | ); |
129 | 129 | ||
130 | #if ENABLE_FEATURE_TOUCH_SUSV3 | ||
130 | timebuf[0].tv_nsec = timebuf[1].tv_nsec = UTIME_NOW; | 131 | timebuf[0].tv_nsec = timebuf[1].tv_nsec = UTIME_NOW; |
131 | if (opts & OPT_r) { | 132 | if (opts & OPT_r) { |
132 | struct stat stbuf; | 133 | struct stat stbuf; |
@@ -160,6 +161,7 @@ int touch_main(int argc UNUSED_PARAM, char **argv) | |||
160 | timebuf[1].tv_nsec = UTIME_OMIT; | 161 | timebuf[1].tv_nsec = UTIME_OMIT; |
161 | if ((opts & (OPT_a|OPT_m)) == OPT_m) | 162 | if ((opts & (OPT_a|OPT_m)) == OPT_m) |
162 | timebuf[0].tv_nsec = UTIME_OMIT; | 163 | timebuf[0].tv_nsec = UTIME_OMIT; |
164 | #endif | ||
163 | 165 | ||
164 | argv += optind; | 166 | argv += optind; |
165 | do { | 167 | do { |