[PATCH] Fix O_DIRECT on ia64

Jakub Jelinek jakub@redhat.com
Tue Aug 8 18:15:00 GMT 2006


Hi!

O_DIRECT is protected by __USE_GNU on all arches but ia64, so guess
we should be consistent.

2006-08-08  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
	__USE_GNU.

--- libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h.jj	2006-08-03 19:36:26.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h	2006-08-08 20:09:17.000000000 +0200
@@ -43,9 +43,9 @@
 #define O_SYNC		010000
 #define O_FSYNC		O_SYNC
 #define O_ASYNC		020000
-#define O_DIRECT	040000
 
 #ifdef __USE_GNU
+# define O_DIRECT	040000
 # define O_DIRECTORY	0200000	/* must be a directory */
 # define O_NOFOLLOW	0400000 /* don't follow links */
 # define O_NOATIME	01000000 /* Do not set atime.  */

	Jakub



More information about the Libc-hacker mailing list