diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-03 20:05:33 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-03 20:05:33 +0100 |
commit | 016ca978455df7257a92236bbfb0c67de4a4bcd8 (patch) | |
tree | a46d2b089dc45f049a1b254116f355b3d0570070 | |
parent | dcfb820bb9c889ec186c9b3ad28d53bd8626363e (diff) | |
download | busybox-w32-016ca978455df7257a92236bbfb0c67de4a4bcd8.tar.gz busybox-w32-016ca978455df7257a92236bbfb0c67de4a4bcd8.tar.bz2 busybox-w32-016ca978455df7257a92236bbfb0c67de4a4bcd8.zip |
fsync: avoid a gratuitous difference from upstream
Move the definition of O_NOCTTY to mingw.h so that fsync.c is the
same as upstream.
-rw-r--r-- | coreutils/fsync.c | 3 | ||||
-rw-r--r-- | include/mingw.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/fsync.c b/coreutils/fsync.c index f132087cd..5e77e2c16 100644 --- a/coreutils/fsync.c +++ b/coreutils/fsync.c | |||
@@ -26,9 +26,6 @@ | |||
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 | ||
32 | 29 | ||
33 | /* This is a NOFORK applet. Be very careful! */ | 30 | /* This is a NOFORK applet. Be very careful! */ |
34 | 31 | ||
diff --git a/include/mingw.h b/include/mingw.h index 652652c3d..7ee9c15cc 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -30,6 +30,7 @@ int inet_pton(int af, const char *src, void *dst); | |||
30 | #define FD_CLOEXEC 0x1 | 30 | #define FD_CLOEXEC 0x1 |
31 | #define O_NONBLOCK 0 | 31 | #define O_NONBLOCK 0 |
32 | #define O_NOFOLLOW 0 | 32 | #define O_NOFOLLOW 0 |
33 | #define O_NOCTTY 0 | ||
33 | #define O_SPECIAL 0x800000 | 34 | #define O_SPECIAL 0x800000 |
34 | 35 | ||
35 | /* | 36 | /* |