From bc9eb0fd3ffde229acbef3aea012fee49496ad79 Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 13 Mar 1997 07:49:33 +0000 Subject: [PATCH] [project @ 1997-03-13 07:49:33 by sof] Moved FD_SETSIZE test to the end --- ghc/includes/stgdefs.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h index 73eba90..6885b9c 100644 --- a/ghc/includes/stgdefs.h +++ b/ghc/includes/stgdefs.h @@ -5,7 +5,7 @@ #define STGDEFS_H /* machine/compiler/system dependencies :-( Must be first! */ -#include "platform.h" /* generated by configure */ +/* OLD: #include "platform.h" generated by configure */ #include "config.h" /* generated by configure */ #include "error.h" #include "StgMachDeps.h" @@ -85,22 +85,6 @@ int sscanf PROTO((const char *, const char *, ...)); /* end of hack */ #endif /* STDC_HEADERS */ -/* - * threadWaitWrite# uses FD_SETSIZE to distinguish - * between read file descriptors and write fd's. - * Hence we need to include , but - * is this the best place to do it? - * (the following has been moved from libposix.h) - */ - -#ifdef HAVE_SYS_TYPES_H -#include -#endif /* HAVE_SYS_TYPES_H */ - -#ifndef FD_SETSIZE -#define FD_SETSIZE 1024 -#endif - #if ! defined(EXIT_SUCCESS) || ! defined(EXIT_FAILURE) /* "stdlib.h" should have defined these; but at least on SunOS 4.1.3, this is not so. @@ -250,4 +234,21 @@ char *stgMallocWords PROTO((I_, char *)); /* Saving and restoring registers */ #include "StgRegs.h" + +/* + * threadWaitWrite# uses FD_SETSIZE to distinguish + * between read file descriptors and write fd's. + * Hence we need to include , but + * is this the best place to do it? + * (the following has been moved from libposix.h) + */ + +#ifdef HAVE_SYS_TYPES_H +#include +#endif /* HAVE_SYS_TYPES_H */ + +#ifndef FD_SETSIZE +#define FD_SETSIZE 1024 +#endif + #endif /* ! STGDEFS_H */ -- 1.7.10.4