gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 164/222: socketpair: fix include and define for older TCP header


From: gnunet
Subject: [gnurl] 164/222: socketpair: fix include and define for older TCP header systems
Date: Thu, 07 Nov 2019 00:11:00 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 0dc14b83818f6166d60e939ce2cc1c4806d39c4a
Author: Harry Sintonen <address@hidden>
AuthorDate: Thu Oct 10 12:52:51 2019 +0300

    socketpair: fix include and define for older TCP header systems
    
    fixed build for systems that need netinet/in.h for IPPROTO_TCP and are
    missing INADDR_LOOPBACK
    
    Closes #4480
---
 lib/socketpair.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/socketpair.c b/lib/socketpair.c
index ffdfdad7f..1f0e2e4a4 100644
--- a/lib/socketpair.c
+++ b/lib/socketpair.c
@@ -37,6 +37,12 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h> /* IPPROTO_TCP */
+#endif
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001
+#endif /* !INADDR_LOOPBACK */
 #endif /* !WIN32 */
 
 /* The last 3 #include files should be in this order */

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



reply via email to

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