From 28de29088084e5f544b79760748ef28739b5c769 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 9 Jul 2009 03:33:55 +0000 Subject: Set the _XOPEN_SOURCE feature test macro correctly in dimension.h, so that pthread.h defines pthread_rwlock_t for us. --- libdimension/dimension.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdimension/dimension.h') diff --git a/libdimension/dimension.h b/libdimension/dimension.h index 8e93f4b..989eb24 100644 --- a/libdimension/dimension.h +++ b/libdimension/dimension.h @@ -25,6 +25,11 @@ #ifndef DIMENSION_H #define DIMENSION_H +/* Set some feature test macros so we work even in ANSI C mode */ +#ifndef _XOPEN_SOURCE + #define _XOPEN_SOURCE 600 +#endif + /* Handle inlines nicely without cheating and making them static. The DMNSN_INLINE macro is set appropriately for the version of C you're using, and non-inline versions are emitted in exactly one translation unit when -- cgit v1.2.3