This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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>
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]