$NetBSD: patch-ap,v 1.1 2006/06/20 13:29:01 tron Exp $

--- Modules/socketmodule.c.orig	2006-02-20 09:42:37.000000000 +0000
+++ Modules/socketmodule.c	2006-06-20 14:23:33.000000000 +0100
@@ -341,7 +341,8 @@
 #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
