--- Python-3.0.1.orig/Modules/socketmodule.c 2009-02-06 03:50:18.000000000 +0100 +++ Python-3.0.1/Modules/socketmodule.c 2009-03-01 22:05:18.000000000 +0100 @@ -382,7 +382,7 @@ #define SOCKETCLOSE close #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