diff options
author | Simon Marlow <simonmar@microsoft.com> | 2006-05-02 11:12:31 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2006-05-02 11:12:31 +0000 |
commit | 1eb850d5c4e7b5a838119fe5cb561fbbaba01bf2 (patch) | |
tree | 22a2a04b4b6aaab5b169ad3b0a6d897b53f9af80 /rts/RtsUtils.c | |
parent | 1994438bb2a4e052a267744dcec9efb6f8bd3e97 (diff) | |
download | haskell-1eb850d5c4e7b5a838119fe5cb561fbbaba01bf2.tar.gz |
fix ctime_r problem on Solaris (I hope)
Diffstat (limited to 'rts/RtsUtils.c')
-rw-r--r-- | rts/RtsUtils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index 3e7e225dda..444c839e0d 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 <time.h> +#ifdef solaris2_HOST_OS +#undef _POSIX_PTHREAD_SEMANTICS +#endif #endif #ifdef HAVE_FCNTL_H |