gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 37/125: include: get netinet/in.h before linux/tcp.


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 37/125: include: get netinet/in.h before linux/tcp.h
Date: Sun, 21 Jan 2018 23:41:32 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit c103cac3c82dd4484b375b0a940c22aac6f9be74
Author: Per Malmberg <address@hidden>
AuthorDate: Wed Dec 6 09:11:05 2017 +0100

    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
---
 lib/sendf.c  | 4 ++++
 lib/setopt.c | 4 ++++
 2 files changed, 8 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]