From 1eb850d5c4e7b5a838119fe5cb561fbbaba01bf2 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 2 May 2006 11:12:31 +0000 Subject: [PATCH] fix ctime_r problem on Solaris (I hope) --- rts/RtsUtils.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index 3e7e225..444c839 100644 --- a/rts/RtsUtils.c +++ b/rts/RtsUtils.c @@ -16,7 +16,14 @@ #include "Ticky.h" #ifdef HAVE_TIME_H +#ifdef solaris2_HOST_OS +// Solaris requires this to get access to the POSIX ctime_r() +#define _POSIX_PTHREAD_SEMANTICS +#endif #include +#ifdef solaris2_HOST_OS +#undef _POSIX_PTHREAD_SEMANTICS +#endif #endif #ifdef HAVE_FCNTL_H -- 1.7.10.4