From: Jeroen Roovers <j...@gentoo.org> 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