3 --- Modules/socketmodule.c.orig 2007-03-31 20:56:11.000000000 +0200
4 +++ Modules/socketmodule.c
5 @@ -357,7 +357,8 @@ const char *inet_ntop(int af, const void
6 #define SOCKETCLOSE close
9 -#if defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H)
10 +#if (defined(HAVE_BLUETOOTH_H) || defined(HAVE_BLUETOOTH_BLUETOOTH_H)) && \
11 + !defined(__NetBSD__) && !defined(__DragonFly__)
12 #define USE_BLUETOOTH 1
13 #if defined(__FreeBSD__)
14 #define BTPROTO_L2CAP BLUETOOTH_PROTO_L2CAP