From 048d1eb9132455948079c217ba1c5de9ff8e5f35 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 11 Mar 2019 14:30:10 -0400 Subject: libgomp/config/posix/lock.c: fix _XOPEN_SOURCE feature-test re-definition bug. --- libgomp/config/posix/lock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libgomp/config') diff --git a/libgomp/config/posix/lock.c b/libgomp/config/posix/lock.c index 8cd715e64..6c9194f25 100644 --- a/libgomp/config/posix/lock.c +++ b/libgomp/config/posix/lock.c @@ -34,8 +34,10 @@ the declarations are available without _XOPEN_SOURCE, which actually breaks compilation. */ #ifndef __osf__ +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 500 #endif +#endif #include "libgomp.h" -- cgit v1.2.3