bluez-utils: fixed compilation issue with gcc 4.3

This commit is contained in:
Alan Mizrahi 2009-06-02 20:06:10 +09:00
parent a3303880d5
commit dc37452c9b
3 changed files with 44 additions and 2 deletions

View File

@ -1 +1,2 @@
ae3729ab5592be06ed01b973d4b3e9fe bluez-utils-2.25.tar.gz
3515e68f53ab4018fdef10f0026f9508 bluez-utils.gcc43.patch

View File

@ -5,11 +5,12 @@
name=bluez-utils
version=2.25
release=1
source=(http://bluez.sourceforge.net/download/$name-$version.tar.gz)
release=2
source=(http://bluez.sourceforge.net/download/$name-$version.tar.gz bluez-utils.gcc43.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/bluez-utils.gcc43.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-alsa \

View File

@ -0,0 +1,40 @@
--- bluez-utils-2.25/tools/hciconfig.c.orig 2009-05-29 23:20:42.465846076 +0900
+++ bluez-utils-2.25/tools/hciconfig.c 2009-05-29 23:20:24.656113414 +0900
@@ -36,6 +36,7 @@
#include <getopt.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
--- bluez-utils-2.25/tools/hciattach.c.orig 2009-05-29 23:09:38.201730680 +0900
+++ bluez-utils-2.25/tools/hciattach.c 2009-05-29 23:10:00.495664682 +0900
@@ -40,6 +40,7 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
--- bluez-utils-2.25/sdpd/request.c.orig 2009-05-29 23:21:31.751057125 +0900
+++ bluez-utils-2.25/sdpd/request.c 2009-05-29 23:21:45.857770332 +0900
@@ -33,6 +33,7 @@
#include <malloc.h>
#include <syslog.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
--- bluez-utils-2.25/hidd/sdp.c.orig 2009-05-29 23:23:37.324463314 +0900
+++ bluez-utils-2.25/hidd/sdp.c 2009-05-29 23:24:18.087891487 +0900
@@ -34,6 +34,7 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/socket.h>
+#include <limits.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>