From 0c5be44ad9f968e5a94c84b9a97fc4d117bcb09f Mon Sep 17 00:00:00 2001 From: Kris Katterjohn Date: Fri, 23 Jun 2017 17:04:43 -0500 Subject: [PATCH] #include netinet/tcp.h so TCP_* will actually be defined This header needs to be included so the TCP_* defines are available. Sockets created with open-client-stream and open-server-stream would try to set TCP_NODELAY if available, but they couldn't because this was not defined. Tested on OpenBSD and Linux. --- src/c/tcp.d | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c/tcp.d b/src/c/tcp.d index 59794554b..c914aa992 100644 --- a/src/c/tcp.d +++ b/src/c/tcp.d @@ -28,6 +28,7 @@ extern int errno; #include #include #include +#include #include #include #include