summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgomp/config/posix/lock.c2
1 files changed, 2 insertions, 0 deletions
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"