summaryrefslogtreecommitdiff
path: root/ghc/lib/misc/cbits
diff options
context:
space:
mode:
authorsimonm <unknown>1998-08-17 12:04:16 +0000
committersimonm <unknown>1998-08-17 12:04:16 +0000
commitf1ab41433b5145ebf914681053ed2fe00a72f987 (patch)
tree3149432b2434f39adb74b7577d8c84078bf0d4eb /ghc/lib/misc/cbits
parent931242f927fca1ab372d6a0e4bc27653edeec853 (diff)
downloadhaskell-f1ab41433b5145ebf914681053ed2fe00a72f987.tar.gz
[project @ 1998-08-17 12:04:16 by simonm]
include netinet/tcp.h if available.
Diffstat (limited to 'ghc/lib/misc/cbits')
-rw-r--r--ghc/lib/misc/cbits/ghcSockets.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ghc/lib/misc/cbits/ghcSockets.h b/ghc/lib/misc/cbits/ghcSockets.h
index b3a270d032..ad37d02f8b 100644
--- a/ghc/lib/misc/cbits/ghcSockets.h
+++ b/ghc/lib/misc/cbits/ghcSockets.h
@@ -19,6 +19,9 @@
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
+#ifdef HAVE_NETINET_TCP_H
+# include <netinet/tcp.h>
+#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>