diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-05-18 10:28:58 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-05-18 10:28:58 +0000 |
commit | db6ac78e2be25a5c8c44d50e073df25653dc0039 (patch) | |
tree | 3cc5f0dd3a291d9d61a60f60b5d2d1d065b14c7c | |
parent | 1c8acc1564a5ba2d340c62966e7409f001601553 (diff) | |
download | haskell-db6ac78e2be25a5c8c44d50e073df25653dc0039.tar.gz |
Declare this file to be POSIX
This is simpler than using _POSIX_THREAD_SEMANTICS on Solaris to get
the right version of ctime_r().
-rw-r--r-- | rts/RtsUtils.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index 444c839e0d..af68905707 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 <time.h> -#ifdef solaris2_HOST_OS -#undef _POSIX_PTHREAD_SEMANTICS -#endif #endif #ifdef HAVE_FCNTL_H |