diff options
-rw-r--r-- | configs/mingw32_defconfig | 2 | ||||
-rw-r--r-- | configs/mingw64_defconfig | 2 | ||||
-rw-r--r-- | coreutils/fsync.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index 5ed8cd41f..5a17fb164 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig | |||
@@ -232,7 +232,7 @@ CONFIG_EXPR_MATH_SUPPORT_64=y | |||
232 | CONFIG_FACTOR=y | 232 | CONFIG_FACTOR=y |
233 | CONFIG_FALSE=y | 233 | CONFIG_FALSE=y |
234 | CONFIG_FOLD=y | 234 | CONFIG_FOLD=y |
235 | # CONFIG_FSYNC is not set | 235 | CONFIG_FSYNC=y |
236 | CONFIG_HEAD=y | 236 | CONFIG_HEAD=y |
237 | CONFIG_FEATURE_FANCY_HEAD=y | 237 | CONFIG_FEATURE_FANCY_HEAD=y |
238 | # CONFIG_HOSTID is not set | 238 | # CONFIG_HOSTID is not set |
diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig index 2c189700a..7460e9860 100644 --- a/configs/mingw64_defconfig +++ b/configs/mingw64_defconfig | |||
@@ -232,7 +232,7 @@ CONFIG_EXPR_MATH_SUPPORT_64=y | |||
232 | CONFIG_FACTOR=y | 232 | CONFIG_FACTOR=y |
233 | CONFIG_FALSE=y | 233 | CONFIG_FALSE=y |
234 | CONFIG_FOLD=y | 234 | CONFIG_FOLD=y |
235 | # CONFIG_FSYNC is not set | 235 | CONFIG_FSYNC=y |
236 | CONFIG_HEAD=y | 236 | CONFIG_HEAD=y |
237 | CONFIG_FEATURE_FANCY_HEAD=y | 237 | CONFIG_FEATURE_FANCY_HEAD=y |
238 | # CONFIG_HOSTID is not set | 238 | # CONFIG_HOSTID is not set |
diff --git a/coreutils/fsync.c b/coreutils/fsync.c index 5e77e2c16..f132087cd 100644 --- a/coreutils/fsync.c +++ b/coreutils/fsync.c | |||
@@ -26,6 +26,9 @@ | |||
26 | #ifndef O_NOATIME | 26 | #ifndef O_NOATIME |
27 | # define O_NOATIME 0 | 27 | # define O_NOATIME 0 |
28 | #endif | 28 | #endif |
29 | #ifndef O_NOCTTY | ||
30 | # define O_NOCTTY 0 | ||
31 | #endif | ||
29 | 32 | ||
30 | /* This is a NOFORK applet. Be very careful! */ | 33 | /* This is a NOFORK applet. Be very careful! */ |
31 | 34 | ||