summaryrefslogtreecommitdiff
path: root/libaltos/cjnitest.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2017-08-12 00:59:03 -0400
committerBdale Garbee <bdale@gag.com>2017-08-12 00:59:03 -0400
commit59c6167b9f1e9de30455af1632e9a0b65d64ad63 (patch)
treed27e4b3df53300081aa6ac0a30820c58a1c968ef /libaltos/cjnitest.c
parent41eedf88751910ea9c0a299444fbac769edb8427 (diff)
parentfccfa54bb3b746cecfcdc1fd497cf736bbfe3ef3 (diff)
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'libaltos/cjnitest.c')
-rw-r--r--libaltos/cjnitest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libaltos/cjnitest.c b/libaltos/cjnitest.c
index 3a65c3d6..7e857275 100644
--- a/libaltos/cjnitest.c
+++ b/libaltos/cjnitest.c
@@ -1,5 +1,9 @@
#include <stdio.h>
#include "libaltos.h"
+#include <string.h>
+
+#define HAS_BLUETOOTH 1
+#define HAS_USB 1
static void
altos_puts(struct altos_file *file, char *string)
@@ -19,6 +23,7 @@ main (int argc, char **argv)
struct altos_bt_list *bt_list;
altos_init();
+#if HAS_USB
list = altos_list_start();
while (altos_list_next(list, &device)) {
struct altos_file *file;
@@ -42,6 +47,7 @@ main (int argc, char **argv)
altos_close(file);
}
altos_list_finish(list);
+#endif
#if HAS_BLUETOOTH
bt_list = altos_bt_list_start(8);
while (altos_bt_list_next(bt_list, &bt_device)) {