summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bluetooth/hcsecd/Makefile2
-rw-r--r--usr.sbin/bluetooth/hcsecd/parser.y1
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bluetooth/hcsecd/Makefile b/usr.sbin/bluetooth/hcsecd/Makefile
index d9a106f..e544ed4 100644
--- a/usr.sbin/bluetooth/hcsecd/Makefile
+++ b/usr.sbin/bluetooth/hcsecd/Makefile
@@ -4,7 +4,7 @@
PROG= hcsecd
MAN= hcsecd.8 hcsecd.conf.5
SRCS= hcsecd.c lexer.l parser.y
-WARNS?= 1
+WARNS?= 2
CFLAGS+= -I${.CURDIR}
DPADD= ${LIBBLUETOOTH}
diff --git a/usr.sbin/bluetooth/hcsecd/parser.y b/usr.sbin/bluetooth/hcsecd/parser.y
index 634d37a..385bff2 100644
--- a/usr.sbin/bluetooth/hcsecd/parser.y
+++ b/usr.sbin/bluetooth/hcsecd/parser.y
@@ -39,6 +39,7 @@
#include <stdarg.h>
#include <string.h>
#include <syslog.h>
+#include <unistd.h>
#include "hcsecd.h"
int yyparse (void);
OpenPOWER on IntegriCloud