This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Define _XOPEN_SOURCE to 500 in gthr-posix.h
- From: Thiemo Seufer <ths at networkno dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Apr 2007 16:40:49 +0100
- Subject: [PATCH] Define _XOPEN_SOURCE to 500 in gthr-posix.h
Hello All,
gthr-posix.h uses pthread_mutex_settype, but on some systems the
pthread.h header file is careful enough to supply this prototype
only when the appropriate _XOPEN_SOURCE macro is defined.
The appended patch defines _XOPEN_SOURCE to 500 before including
pthread.h.
Thiemo
2007-04-25 Thiemo Seufer <ths@mips.com>
* gthr-posix.h: Define _XOPEN_SOURCE to 500.
Index: gcc/gthr-posix.h
===================================================================
--- gcc/gthr-posix.h (revision 124154)
+++ gcc/gthr-posix.h (working copy)
@@ -40,6 +40,7 @@
#define _REENTRANT 1
#endif
+#define _XOPEN_SOURCE 500
#include <pthread.h>
#include <unistd.h>