$NetBSD: patch-af,v 1.3 2006/07/09 09:27:52 xtraeme Exp $

--- lib/btobex.c.orig	2006-07-09 10:36:43.000000000 +0200
+++ lib/btobex.c	2006-07-09 10:38:51.000000000 +0200
@@ -37,7 +37,7 @@
 #include <winsock.h>
 
 #else /* _WIN32 */
-/* Linux case */
+/* Linux/NetBSD case */
 
 #include <string.h>
 #include <unistd.h>
@@ -46,8 +46,17 @@
 #include <netinet/in.h>
 #include <sys/socket.h>
 
+#ifdef HAVE_NETBSD_BLUETOOTH
+#define rc_family	bt_family
+#define rc_bdaddr	bt_bdaddr
+#define rc_channel	bt_channel
+#define sockaddr_rc	sockaddr_bt
+#include <bluetooth.h>
+#include <netbt/rfcomm.h>
+#else
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/rfcomm.h>
+#endif
 
 #endif /* _WIN32 */
 
