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}"
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
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");