$NetBSD: patch-ap,v 1.2 2007/06/08 14:16:17 wiz Exp $ --- Modules/socketmodule.c.orig 2006-10-10 16:20:41.000000000 +0000 +++ Modules/socketmodule.c @@ -355,7 +355,8 @@ const char *inet_ntop(int af, const void #define SEGMENT_SIZE 65535 #endif -#if defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H) +#if (defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H)) && \ + !defined(__NetBSD__) #define USE_BLUETOOTH 1 #if defined(__FreeBSD__) #define BTPROTO_L2CAP BLUETOOTH_PROTO_L2CAP