[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Otavio Salvador
otavio at alioth.debian.org
Tue May 6 17:31:39 UTC 2008
include/parted/linux.h | 2 +-
libparted/arch/linux.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c31f1664a5855e7932b33650f01b2b32d386d237
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Tue May 6 14:09:37 2008 -0300
properly test for __s390__ and __s390x__ macros to disable O_DIRECT on that
diff --git a/include/parted/linux.h b/include/parted/linux.h
index 9eb7490..a496e53 100644
--- a/include/parted/linux.h
+++ b/include/parted/linux.h
@@ -22,7 +22,7 @@
#include <parted/parted.h>
#include <parted/device.h>
-#if defined __s390__ || defined __s390x__
+#if defined(__s390__) || defined(__s390x__)
# include <parted/fdasd.h>
#endif
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 998417f..c332cf8 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -65,7 +65,7 @@
#define HDIO_GETGEO 0x0301 /* get device geometry */
#define HDIO_GET_IDENTITY 0x030d /* get IDE identification info */
-#if defined(O_DIRECT) && (!defined(__s390__) || !defined(__s390x__))
+#if defined(O_DIRECT) && !(defined(__s390__) || defined(__s390x__))
#define RD_MODE (O_RDONLY | O_DIRECT)
#define WR_MODE (O_WRONLY | O_DIRECT)
#define RW_MODE (O_RDWR | O_DIRECT)
More information about the Parted-commits
mailing list