$NetBSD: patch-ap,v 1.3 2008/02/22 13:03:25 joerg 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__) && !defined(__DragonFly__)
 #define USE_BLUETOOTH 1
 #if defined(__FreeBSD__)
 #define BTPROTO_L2CAP BLUETOOTH_PROTO_L2CAP
