aboutsummaryrefslogtreecommitdiff
path: root/lib/sendf.c
diff options
context:
space:
mode:
authorPer Malmberg <per.malmberg@snowsoftware.com>2017-12-06 09:11:05 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-07 08:15:44 +0100
commitc103cac3c82dd4484b375b0a940c22aac6f9be74 (patch)
tree0accc14095f3dd2b1ed4fa33f9037a3e068c86cc /lib/sendf.c
parent00cda0f9b31e45512776670201f9ec2eec095338 (diff)
include: get netinet/in.h before linux/tcp.h
... to allow build on older Linux dists (specifically CentOS 4.8 on gcc 4.8.5) Closes #2160
Diffstat (limited to 'lib/sendf.c')
-rw-r--r--lib/sendf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index a1cb8e478..027f97c47 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -22,6 +22,10 @@
#include "curl_setup.h"
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
#ifdef HAVE_LINUX_TCP_H
#include <linux/tcp.h>
#endif