[project @ 1998-05-22 15:27:05 by simonm]
[ghc-hetmet.git] / ghc / includes / stgdefs.h
index 7e54499..7170d42 100644 (file)
@@ -44,19 +44,30 @@ void _stgAssert PROTO((char *, unsigned int));
 #ifdef nextstep3_TARGET_OS
 #define _NEXT_SOURCE
 #endif
+
+#ifdef aix_TARGET_OS
+/* for fd_set */
+#include <sys/select.h>
+#endif
+
 #ifdef NON_POSIX_SOURCE
 #undef _POSIX_SOURCE
 #undef _POSIX_C_SOURCE
 #else
+# ifndef aix_TARGET_OS
+/* already defined on aix */
 #define _POSIX_SOURCE 1
+# endif
+#ifndef irix_TARGET_OS
 #define _POSIX_C_SOURCE 199301L
-/* Alphas set _POSIX_VERSION (unistd.h) */
-/* ditto _POSIX2_C_VERSION
-        _POSIX2_VERSION
-        _POSIX_4SOURCE
-*/
-
+#else
+/* defines contributed by Tomasz Cholewo <tjchol01@mecca.spd.louisville.edu>
+   ( this is with gcc-2.7.2 for irix-6.{2.3} ) .. hopefully they will not
+   upset anything under irix5 ..
+   */
+#define _POSIX_C_SOURCE 199309L
+#define __EXTENSIONS__
+#endif
 /* Bogus use of non-existent variable POSIX_C_SOURCE in the supplied header files
    for gcc-2.7.1 on Solaris forces us to define it: (this strikes when using st_atime
    and friends in <sys/stat.h> )
@@ -204,16 +215,18 @@ void miniInterpret PROTO((StgFunPtr));
 void miniInterpret_debug PROTO(( StgFunPtr, void(*)(STG_NO_ARGS) ));
 void miniInterpretEnd(STG_NO_ARGS);
 
+/* UNUSED   -- SOF 9/97
 StgFunPtr evaluateMain(STG_NO_ARGS);
 StgFunPtr returnMain(STG_NO_ARGS);
 StgFunPtr impossible_jump_after_switch(STG_NO_ARGS);
+*/
 
 /* hooks: user might write some of their own */
 void ErrorHdrHook      PROTO((FILE *));
 void OutOfHeapHook     PROTO((W_, W_));
 void StackOverflowHook PROTO((I_));
 #ifdef CONCURRENT
-void NoRunnableThreadsHook (STG_NO_ARGS);
+int NoRunnableThreadsHook (STG_NO_ARGS);
 #endif
 void MallocFailHook    PROTO((I_, char *));
 void PatErrorHdrHook   PROTO((FILE *));