pkgsrc/net/transmission/patches/patch-ab
2014-04-01 11:13:28 +00:00

20 lines
514 B
Text

$NetBSD: patch-ab,v 1.2 2014/04/01 11:13:28 wiz Exp $
Provide default implementation if none exists.
--- third-party/libnatpmp/getgateway.c.orig 2008-08-09 06:08:13.000000000 +0200
+++ third-party/libnatpmp/getgateway.c
@@ -49,6 +49,13 @@
#undef USE_SYSCTL_NET_ROUTE
#endif
+#if !defined(USE_PROC_NET_ROUTE) && !defined(USE_SOCKET_ROUTE) && !defined(USE_SYSCTL_NET_ROUTE)
+int getdefaultgateway(in_addr_t * addr)
+{
+ return -1;
+}
+#endif
+
#ifdef WIN32
#undef USE_PROC_NET_ROUTE
#undef USE_SOCKET_ROUTE