aboutsummaryrefslogtreecommitdiff
path: root/lib/libbluetooth
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2015-04-07 16:48:23 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2015-04-07 16:48:23 +0000
commit8d6f425ddd8021ae2257ba9682f8844254ecdde1 (patch)
tree3407105e73d99b25919959b8ea59bc192c2c9f36 /lib/libbluetooth
parent212236608c8e01c8e4c65053539714d897e1482b (diff)
downloadsrc-8d6f425ddd8021ae2257ba9682f8844254ecdde1.tar.gz
src-8d6f425ddd8021ae2257ba9682f8844254ecdde1.zip
Check l2cap socket initialisation and define L2CAP_SOCKET_CHECKED
This will fix build.
Notes
Notes: svn path=/head/; revision=281210
Diffstat (limited to 'lib/libbluetooth')
-rw-r--r--lib/libbluetooth/bluetooth.c2
-rw-r--r--lib/libbluetooth/dev.c1
-rw-r--r--lib/libbluetooth/hci.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/lib/libbluetooth/bluetooth.c b/lib/libbluetooth/bluetooth.c
index 23b7df0da970..bbcf0071cfe0 100644
--- a/lib/libbluetooth/bluetooth.c
+++ b/lib/libbluetooth/bluetooth.c
@@ -30,7 +30,7 @@
* $Id: bluetooth.c,v 1.3 2003/05/20 23:04:30 max Exp $
* $FreeBSD$
*/
-
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/lib/libbluetooth/dev.c b/lib/libbluetooth/dev.c
index 1f9e745dd46a..a6295dd2b1f0 100644
--- a/lib/libbluetooth/dev.c
+++ b/lib/libbluetooth/dev.c
@@ -30,6 +30,7 @@
* $FreeBSD$
*/
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <stdio.h>
#include <string.h>
diff --git a/lib/libbluetooth/hci.c b/lib/libbluetooth/hci.c
index 1ae6ff963d7b..651c0dda1fe7 100644
--- a/lib/libbluetooth/hci.c
+++ b/lib/libbluetooth/hci.c
@@ -31,6 +31,7 @@
*/
#include <assert.h>
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <inttypes.h>
#include <stdio.h>