Declare this file to be POSIX
authorSimon Marlow <simonmar@microsoft.com>
Thu, 18 May 2006 10:28:58 +0000 (10:28 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 18 May 2006 10:28:58 +0000 (10:28 +0000)
This is simpler than using _POSIX_THREAD_SEMANTICS on Solaris to get
the right version of ctime_r().

rts/RtsUtils.c

index 444c839..af68905 100644 (file)
@@ -6,8 +6,7 @@
  *
  * ---------------------------------------------------------------------------*/
 
-/* gettimeofday isn't POSIX */
-/* #include "PosixSource.h" */
+#include "PosixSource.h"
 
 #include "Rts.h"
 #include "RtsAPI.h"
 #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