From db6ac78e2be25a5c8c44d50e073df25653dc0039 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 18 May 2006 10:28:58 +0000 Subject: [PATCH] Declare this file to be POSIX This is simpler than using _POSIX_THREAD_SEMANTICS on Solaris to get the right version of ctime_r(). --- rts/RtsUtils.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index 444c839..af68905 100644 --- a/rts/RtsUtils.c +++ b/rts/RtsUtils.c @@ -6,8 +6,7 @@ * * ---------------------------------------------------------------------------*/ -/* gettimeofday isn't POSIX */ -/* #include "PosixSource.h" */ +#include "PosixSource.h" #include "Rts.h" #include "RtsAPI.h" @@ -16,14 +15,7 @@ #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