diff options
author | Per Malmberg <per.malmberg@snowsoftware.com> | 2017-12-06 09:11:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-12-07 08:15:44 +0100 |
commit | c103cac3c82dd4484b375b0a940c22aac6f9be74 (patch) | |
tree | 0accc14095f3dd2b1ed4fa33f9037a3e068c86cc | |
parent | 00cda0f9b31e45512776670201f9ec2eec095338 (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
-rw-r--r-- | lib/sendf.c | 4 | ||||
-rw-r--r-- | lib/setopt.c | 4 |
2 files changed, 8 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 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 |