[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fcntl-h: avoid build errors when O_SYNC==O_DSYNC
From: |
Mike Frysinger |
Subject: |
[PATCH] fcntl-h: avoid build errors when O_SYNC==O_DSYNC |
Date: |
Wed, 12 Nov 2014 22:07:32 -0500 |
From: Jeroen Roovers <address@hidden>
On parisc Linux, O_SYNC and O_DSYNC have the same value.
Add a check to the fcntl tests to avoid build errors:
test-fcntl-h.c:115:5: error: duplicate case value
https://bugs.gentoo.org/477680
* tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
---
tests/test-fcntl-h.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-fcntl-h.c b/tests/test-fcntl-h.c
index a86214e..ff6b04d 100644
--- a/tests/test-fcntl-h.c
+++ b/tests/test-fcntl-h.c
@@ -111,7 +111,7 @@ main (void)
#if O_RSYNC && O_RSYNC != O_DSYNC
case O_RSYNC:
#endif
-#if O_SYNC && O_SYNC != O_RSYNC
+#if O_SYNC && O_SYNC != O_RSYNC && O_SYNC != O_DSYNC
case O_SYNC:
#endif
#if O_TTY_INIT
--
2.1.3
- [PATCH] fcntl-h: avoid build errors when O_SYNC==O_DSYNC,
Mike Frysinger <=