updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / libwiimote / libwiimote-0.4-bluez4.patch
blob08fb14f709a8bf1f54823d60d423a8729a44cae5
1 diff -upr libwiimote-0.4/configure.in libwiimote-0.4.new/configure.in
2 --- libwiimote-0.4/configure.in 2008-09-11 13:46:48.000000000 +0100
3 +++ libwiimote-0.4.new/configure.in 2008-09-11 13:46:07.000000000 +0100
4 @@ -33,7 +33,7 @@ AC_SUBST(CPICFLAGS)
5 CFLAGS="${CFLAGS} ${CPICFLAGS}"
7 # Checks for BlueZ.
8 -AC_CHECK_LIB([bluetooth], [hci_remote_name],
9 +AC_CHECK_LIB([bluetooth], [hci_read_remote_name],
10 [], [AC_MSG_ERROR([We require BlueZ])])
12 AC_CONFIG_FILES([config.mk
13 diff -upr libwiimote-0.4/src/wiimote_link.c libwiimote-0.4.new/src/wiimote_link.c
14 --- libwiimote-0.4/src/wiimote_link.c 2007-02-07 23:51:07.000000000 +0000
15 +++ libwiimote-0.4.new/src/wiimote_link.c 2008-09-11 13:48:22.000000000 +0100
16 @@ -95,7 +95,7 @@ static int is_wiimote(int hci_sock, inqu
17 return 0;
20 - if (hci_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) {
21 + if (hci_read_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) {
22 wiimote_error("is_wiimote(): Error reading device name: %m");
23 return 0;