summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-05-16 15:26:38 (GMT)
committerKevin Smith <kevin.smith@isode.com>2017-05-17 08:04:04 (GMT)
commitc2abb2e8c248bb57c7478606f941223322983a8e (patch)
treed4c0f39c2933bcf4e3fb96230da60b09d9aabfdd /3rdParty/LibNATPMP/src/libnatpmp/getgateway.c
parentedf519a67a28f9acb61af6d442d94f1aa43df688 (diff)
downloadswift-c2abb2e8c248bb57c7478606f941223322983a8e.zip
swift-c2abb2e8c248bb57c7478606f941223322983a8e.tar.bz2
Update 3rdParty/LibNATPMP to libnatpmp-20150609
Furthermore applied current patches. Test-Information: Builds on macOS 10.12.5 with Qt 5.4.2 and all unit and integration tests pass. Change-Id: I7a8a3b7e8b37b20532e3ed5fe32f1cef5b09b1f6
Diffstat (limited to '3rdParty/LibNATPMP/src/libnatpmp/getgateway.c')
-rw-r--r--3rdParty/LibNATPMP/src/libnatpmp/getgateway.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/3rdParty/LibNATPMP/src/libnatpmp/getgateway.c b/3rdParty/LibNATPMP/src/libnatpmp/getgateway.c
index 3a3f9a6..dfb9f3e 100644
--- a/3rdParty/LibNATPMP/src/libnatpmp/getgateway.c
+++ b/3rdParty/LibNATPMP/src/libnatpmp/getgateway.c
@@ -1,7 +1,7 @@
-/* $Id: getgateway.c,v 1.24 2014/03/31 12:41:35 nanard Exp $ */
+/* $Id: getgateway.c,v 1.25 2014/04/22 10:28:57 nanard Exp $ */
/* libnatpmp
-Copyright (c) 2007-2011, Thomas BERNARD
+Copyright (c) 2007-2014, Thomas BERNARD
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -67,13 +67,6 @@ POSSIBILITY OF SUCH DAMAGE.
#undef USE_SYSCTL_NET_ROUTE
#endif
-#if !defined(USE_PROC_NET_ROUTE) && !defined(USE_SOCKET_ROUTE) && !defined(USE_SYSCTL_NET_ROUTE) && !defined(WIN32)
-int getdefaultgateway(in_addr_t * addr)
-{
- return -1;
-}
-#endif
-
#ifdef WIN32
#undef USE_PROC_NET_ROUTE
#undef USE_SOCKET_ROUTE
@@ -572,4 +565,9 @@ fail:
}
#endif /* #ifdef USE_HAIKU_CODE */
-
+#if !defined(USE_PROC_NET_ROUTE) && !defined(USE_SOCKET_ROUTE) && !defined(USE_SYSCTL_NET_ROUTE) && !defined(USE_WIN32_CODE) && !defined(USE_WIN32_CODE_2) && !defined(USE_HAIKU_CODE)
+int getdefaultgateway(in_addr_t * addr)
+{
+ return -1;
+}
+#endif