summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2016-01-09 16:27:58 +0900
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-10 09:15:22 +0100
commit756575e5b6d157e81ce3a89cd866b4c17b71e309 (patch)
tree010a7355f9e9ee359c87f2e38671a5e7875ab788 /libc/sysdeps/linux
parent0c91741de0b307a7090125984b327a4374d27142 (diff)
h8300: O_DIRECT and O_DIRECTORY swapping.
Different define of latest kernel. kernel define is #define O_DIRECT 00040000 /* direct disk access hint */ #define O_DIRECTORY 00200000 /* must be a directory */ Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/h8300/bits/fcntl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/h8300/bits/fcntl.h b/libc/sysdeps/linux/h8300/bits/fcntl.h
index d180cbd14..c167ee23c 100644
--- a/libc/sysdeps/linux/h8300/bits/fcntl.h
+++ b/libc/sysdeps/linux/h8300/bits/fcntl.h
@@ -44,8 +44,8 @@
#define O_ASYNC 020000
#ifdef __USE_GNU
-# define O_DIRECTORY 040000 /* Must be a directory. */
-# define O_DIRECT 0200000 /* Direct disk access. */
+# define O_DIRECT 040000 /* Direct disk access. */
+# define O_DIRECTORY 0200000 /* Must be a directory. */
# define O_NOFOLLOW 0400000 /* Do not follow links. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_CLOEXEC 02000000 /* Set close_on_exec. */