Skip to content
Snippets Groups Projects
Commit bc9eb0fd authored by sof's avatar sof
Browse files

[project @ 1997-03-13 07:49:33 by sof]

Moved FD_SETSIZE test to the end
parent 836c3cee
No related merge requests found
......@@ -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 <sys/types.h>, but
* is this the best place to do it?
* (the following has been moved from libposix.h)
*/
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#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 <sys/types.h>, but
* is this the best place to do it?
* (the following has been moved from libposix.h)
*/
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
#ifndef FD_SETSIZE
#define FD_SETSIZE 1024
#endif
#endif /* ! STGDEFS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment