summaryrefslogtreecommitdiffstats
path: root/tools/ppporc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ppporc.c')
-rw-r--r--tools/ppporc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/ppporc.c b/tools/ppporc.c
index 2d8b034d..148a437a 100644
--- a/tools/ppporc.c
+++ b/tools/ppporc.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <signal.h>
#include <syslog.h>
+#include <getopt.h>
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -39,9 +40,6 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
-extern int optind, opterr, optopt;
-extern char *optarg;
-
/* IO cancelation */
static volatile sig_atomic_t __io_canceled;