summaryrefslogtreecommitdiff
path: root/lib/setopt.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/setopt.c
parent00cda0f9b31e45512776670201f9ec2eec095338 (diff)
downloadcurl-c103cac3c82dd4484b375b0a940c22aac6f9be74.tar.gz
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/setopt.c')
-rw-r--r--lib/setopt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 944d17347..bd5fb54d9 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -26,6 +26,10 @@
#include <limits.h>
#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
#ifdef HAVE_LINUX_TCP_H
#include <linux/tcp.h>
#endif