Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkUxn-0001zs-DY for qemu-devel@nongnu.org; Mon, 29 Sep 2008 22:27:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkUxm-0001zc-0D for qemu-devel@nongnu.org; Mon, 29 Sep 2008 22:27:46 -0400 Received: from [199.232.76.173] (port=40193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkUxl-0001zZ-Rk for qemu-devel@nongnu.org; Mon, 29 Sep 2008 22:27:45 -0400 Received: from savannah.gnu.org ([199.232.41.3]:55086 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkUxl-0005yv-Kf for qemu-devel@nongnu.org; Mon, 29 Sep 2008 22:27:45 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KkUxl-0002TE-4b for qemu-devel@nongnu.org; Tue, 30 Sep 2008 02:27:45 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KkUxk-0002TA-QF for qemu-devel@nongnu.org; Tue, 30 Sep 2008 02:27:44 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Tue, 30 Sep 2008 02:27:44 +0000 Subject: [Qemu-devel] [5358] Make sure bluez programs (cross-)compile, add missing statics. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5358 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5358 Author: balrog Date: 2008-09-30 02:27:44 +0000 (Tue, 30 Sep 2008) Log Message: ----------- Make sure bluez programs (cross-)compile, add missing statics. Spotted by Blue Swirl. Modified Paths: -------------- trunk/configure trunk/hw/bt-hci.c Modified: trunk/configure =================================================================== --- trunk/configure 2008-09-29 18:24:38 UTC (rev 5357) +++ trunk/configure 2008-09-30 02:27:44 UTC (rev 5358) @@ -900,8 +900,18 @@ `pkg-config bluez` || bluez="no" fi if test "$bluez" = "yes" ; then + cat > $TMPC << EOF +#include +int main(void) { return bt_error(0); } +EOF bluez_cflags=`pkg-config --cflags bluez` bluez_libs=`pkg-config --libs bluez` + if $cc $ARCH_CFLAGS -o $TMPE ${OS_FLAGS} $bluez_cflags $TMPC \ + $bluez_libs 2> /dev/null ; then + : + else + bluez="no" + fi fi ########################################## Modified: trunk/hw/bt-hci.c =================================================================== --- trunk/hw/bt-hci.c 2008-09-29 18:24:38 UTC (rev 5357) +++ trunk/hw/bt-hci.c 2008-09-30 02:27:44 UTC (rev 5358) @@ -87,7 +87,7 @@ }; /* LMP layer emulation */ -void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data) +static void bt_submit_lmp(struct bt_device_s *bt, int length, uint8_t *data) { int resp, resplen, error, op, tr; uint8_t respdata[17]; @@ -2134,7 +2134,7 @@ return 0; } -void bt_hci_done(struct HCIInfo *info); +static void bt_hci_done(struct HCIInfo *info); static void bt_hci_destroy(struct bt_device_s *dev) { struct bt_hci_s *hci = hci_from_device(dev); @@ -2181,7 +2181,7 @@ return &s->info; } -void bt_hci_done(struct HCIInfo *info) +static void bt_hci_done(struct HCIInfo *info) { struct bt_hci_s *hci = hci_from_info(info); int handle;