summaryrefslogtreecommitdiff
path: root/ghc/includes
diff options
context:
space:
mode:
authorsof <unknown>1997-03-20 22:25:32 +0000
committersof <unknown>1997-03-20 22:25:32 +0000
commit7d5a924990d7856835762b18f86a383d661d4e54 (patch)
tree3bf939d45e2a73971a051d16d534db6949e6e606 /ghc/includes
parent5fb9e913d82248a63ba4e187de570034780b379e (diff)
downloadhaskell-7d5a924990d7856835762b18f86a383d661d4e54.tar.gz
[project @ 1997-03-20 22:25:32 by sof]
Rename __FD_SETSIZE to FD_SETSIZE, if necessary
Diffstat (limited to 'ghc/includes')
-rw-r--r--ghc/includes/stgdefs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h
index 613c161b71..964cfced71 100644
--- a/ghc/includes/stgdefs.h
+++ b/ghc/includes/stgdefs.h
@@ -247,9 +247,10 @@ char *stgMallocWords PROTO((I_, char *));
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */
-/* A real hack this */
-#ifndef linux_TARGET_OS
-# ifndef FD_SETSIZE
+#ifndef FD_SETSIZE
+# ifdef __FD_SETSIZE
+# define FD_SETSIZE __FD_SETSIZE
+# else /* cop out */
# define FD_SETSIZE 1024
# endif
#endif