From 2982d9819f9559301d24bd6d4963baca2524284d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 18 Nov 2020 18:43:37 +0100 Subject: [PATCH] fcntl.h: define O_DIRECT directly coreutils wants to undefine O_NOCACHE, this shouldn't affect O_DIRECT though. Change-Id: Id00316a78eb91b2c7f692bb46eca65b3a7983c6f Reviewed-on: https://review.haiku-os.org/c/haiku/+/3398 Reviewed-by: Adrien Destugues --- headers/posix/fcntl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/posix/fcntl.h b/headers/posix/fcntl.h index 539034ffa9..30cd8fb483 100644 --- a/headers/posix/fcntl.h +++ b/headers/posix/fcntl.h @@ -53,9 +53,9 @@ #define O_RSYNC 0x00020000 /* read synchronized I/O file integrity */ #define O_DSYNC 0x00040000 /* write synchronized I/O data integrity */ #define O_NOFOLLOW 0x00080000 /* fail on symlinks */ -#define O_NOCACHE 0x00100000 /* do not use the file system cache if */ +#define O_DIRECT 0x00100000 /* do not use the file system cache if */ /* possible */ -#define O_DIRECT O_NOCACHE +#define O_NOCACHE O_DIRECT #define O_DIRECTORY 0x00200000 /* fail if not a directory */ /* flags for the *at() functions */