summaryrefslogtreecommitdiff
path: root/devel/pwlib/patches/patch-bd
blob: 617d4b97358fc4afe70404290f49e051ab16a49f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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