diff options
Diffstat (limited to 'libobjc/thr-objc.c')
-rw-r--r-- | libobjc/thr-objc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libobjc/thr-objc.c b/libobjc/thr-objc.c index f2e8c391d70..a859e1eb0fb 100644 --- a/libobjc/thr-objc.c +++ b/libobjc/thr-objc.c @@ -24,6 +24,10 @@ Boston, MA 02110-1301, USA. */ covered by the GNU General Public License. */ #define _LIBOBJC +/* The line below is needed for declarations of functions such as + pthread_mutexattr_settype, without which gthr-posix.h may fail to + compile within libobjc. */ +#define _XOPEN_SOURCE 500 #include "config.h" #include "tconfig.h" #include "coretypes.h" |