summaryrefslogtreecommitdiff
path: root/devel/pwlib/patches/patch-bd
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pwlib/patches/patch-bd')
-rw-r--r--devel/pwlib/patches/patch-bd16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/pwlib/patches/patch-bd b/devel/pwlib/patches/patch-bd
new file mode 100644
index 00000000000..617d4b97358
--- /dev/null
+++ b/devel/pwlib/patches/patch-bd
@@ -0,0 +1,16 @@
+$NetBSD: patch-bd,v 1.1 2004/10/09 14:01:03 mjl Exp $
+
+--- include/ptlib/ipsock.h.orig 2004-10-09 13:10:10.000000000 +0200
++++ include/ptlib/ipsock.h 2004-10-09 13:47:49.000000000 +0200
+@@ -796,7 +796,11 @@
+ * @return TRUE if host is able to capture incoming address, else FALSE
+ */
+ BOOL SetCaptureReceiveToAddress()
++#if P_HAS_PKTINFO
+ { if (!SetOption(IP_PKTINFO, 1, SOL_IP)) return FALSE; catchReceiveToAddr = TRUE; return TRUE; }
++#else
++ { return FALSE; }
++#endif
+
+ /**
+ * return the interface address of the last incoming packet