$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