aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bluetooth/l2control
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 /usr.sbin/bluetooth/l2control
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 'usr.sbin/bluetooth/l2control')
-rw-r--r--usr.sbin/bluetooth/l2control/l2cap.c1
-rw-r--r--usr.sbin/bluetooth/l2control/l2control.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/l2control/l2cap.c b/usr.sbin/bluetooth/l2control/l2cap.c
index c23106c3db3f..44009ef2ef40 100644
--- a/usr.sbin/bluetooth/l2control/l2cap.c
+++ b/usr.sbin/bluetooth/l2control/l2cap.c
@@ -30,6 +30,7 @@
*/
#include <sys/ioctl.h>
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <errno.h>
#include <stdio.h>
diff --git a/usr.sbin/bluetooth/l2control/l2control.c b/usr.sbin/bluetooth/l2control/l2control.c
index fdbf2f5b841d..87ec2371a360 100644
--- a/usr.sbin/bluetooth/l2control/l2control.c
+++ b/usr.sbin/bluetooth/l2control/l2control.c
@@ -30,6 +30,7 @@
*/
#include <assert.h>
+#define L2CAP_SOCKET_CHECKED
#include <bluetooth.h>
#include <err.h>
#include <errno.h>