You are not logged in.

#1 2019-03-24 11:39:18

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 39
Website

extra/bluez

I'm not sure why it didn't happen before, but `bluez-5.50-6` wouldn't build cleanly instead complaining about undeclared variables:

tools/btpclient.c: In function 'signal_handler':
tools/btpclient.c:2834:7: error: 'SIGINT' undeclared (first use in this function)
  case SIGINT:
       ^~~~~~
tools/btpclient.c:2834:7: note: each undeclared identifier is reported only once for each function it appears in
tools/btpclient.c:2835:7: error: 'SIGTERM' undeclared (first use in this function)
  case SIGTERM:
       ^~~~~~~

This patch got it building again:

diff --git i/tools/btpclient.c w/tools/btpclient.c
index b217df5..aece7fe 100644
--- i/tools/btpclient.c
+++ w/tools/btpclient.c
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <getopt.h>
+#include <signal.h>
 
 #include <ell/ell.h>

Last edited by jonathon (2019-03-24 11:41:08)

Offline

Board footer

Powered by FluxBB