Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 76840e23e79ed5b652a300c658db17ca > files > 1

libwiimote-0.4-9.fc12.src.rpm

diff -upr libwiimote-0.4/configure.in libwiimote-0.4.new/configure.in
--- libwiimote-0.4/configure.in	2008-09-11 13:46:48.000000000 +0100
+++ libwiimote-0.4.new/configure.in	2008-09-11 13:46:07.000000000 +0100
@@ -33,7 +33,7 @@ AC_SUBST(CPICFLAGS)
 CFLAGS="${CFLAGS} ${CPICFLAGS}"
 
 # Checks for BlueZ.
-AC_CHECK_LIB([bluetooth], [hci_remote_name],
+AC_CHECK_LIB([bluetooth], [hci_read_remote_name],
 	     [], [AC_MSG_ERROR([We require BlueZ])])
 
 AC_CONFIG_FILES([config.mk
diff -upr libwiimote-0.4/src/wiimote_link.c libwiimote-0.4.new/src/wiimote_link.c
--- libwiimote-0.4/src/wiimote_link.c	2007-02-07 23:51:07.000000000 +0000
+++ libwiimote-0.4.new/src/wiimote_link.c	2008-09-11 13:48:22.000000000 +0100
@@ -95,7 +95,7 @@ static int is_wiimote(int hci_sock, inqu
 	return 0;
     }
 
-    if (hci_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) {
+    if (hci_read_remote_name(hci_sock, &dev->bdaddr, WIIMOTE_CMP_LEN, dev_name, 5000)) {
 	wiimote_error("is_wiimote(): Error reading device name: %m");
 	return 0;
     }