summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-02-07 22:32:50 +0000
committerJim Meyering <jim@meyering.net>2006-02-07 22:32:50 +0000
commit781167fbe17f50678f3b4f58931ae75e2948b963 (patch)
tree77566158fb3d42eaa676a7ce5377240ca84542f0 /src
parentcabedb13fd5561bf3a24834ca125a8e025a42776 (diff)
downloadcoreutils-781167fbe17f50678f3b4f58931ae75e2948b963.tar.xz
(!defined O_DIRECT): If O_DIRECTIO is defined (as it is on Tru64),
define O_DIRECT to that. Patch From James Lemley.
Diffstat (limited to 'src')
-rw-r--r--src/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 45be5d184..0f471e5d1 100644
--- a/src/system.h
+++ b/src/system.h
@@ -156,6 +156,11 @@ initialize_exit_failure (int status)
# define R_OK 4
#endif
+#if !defined O_DIRECT && defined O_DIRECTIO
+/* Tru64 spells it `O_DIRECTIO'. */
+# define O_DIRECT O_DIRECTIO
+#endif
+
#if !defined O_DIRECT
# define O_DIRECT 0
#endif