diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-22 09:29:22 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-02-22 09:29:22 +0000 |
commit | 1efab55196bea6d93aa26ca2fb1d3d358f16452f (patch) | |
tree | 967cc92e8155a5b6ffe6b98a49f86038a430c2f6 | |
parent | bd4bcdbd66163a0f2132ba386dd575fdfbf6f6d7 (diff) | |
download | busybox-w32-1efab55196bea6d93aa26ca2fb1d3d358f16452f.tar.gz busybox-w32-1efab55196bea6d93aa26ca2fb1d3d358f16452f.tar.bz2 busybox-w32-1efab55196bea6d93aa26ca2fb1d3d358f16452f.zip |
fsync: enable in default configuration
-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 | ||