diff options
Diffstat (limited to 'comms/gammu-devel/files/patch-bluetooth')
-rw-r--r-- | comms/gammu-devel/files/patch-bluetooth | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/comms/gammu-devel/files/patch-bluetooth b/comms/gammu-devel/files/patch-bluetooth deleted file mode 100644 index c7629e4612e7..000000000000 --- a/comms/gammu-devel/files/patch-bluetooth +++ /dev/null @@ -1,66 +0,0 @@ ---- common/device/bluetoth/bluez.c.orig 2007-03-10 19:47:59.000000000 +0300 -+++ common/device/bluetoth/bluez.c 2007-06-29 20:00:48.000000000 +0400 -@@ -23,6 +23,8 @@ - #ifdef GSM_ENABLE_BLUETOOTHDEVICE - #ifdef GSM_ENABLE_BLUEZ - -+#define BDADDR_ANY NG_HCI_BDADDR_ANY -+ - #include <stdlib.h> - #include <stdio.h> - #include <fcntl.h> -@@ -31,11 +33,7 @@ - #include <sys/socket.h> - #include <sys/time.h> - #include <unistd.h> --#include <bluetooth/bluetooth.h> --#include <bluetooth/rfcomm.h> --#include <bluetooth/sdp.h> --#include <bluetooth/sdp_lib.h> --#include <bluetooth/hci_lib.h> -+#include <bluetooth.h> - - #include "../../gsmcomon.h" - #include "../devfunc.h" -@@ -44,7 +42,7 @@ - GSM_Error bluetooth_connect(GSM_StateMachine *s, int port, char *device) - { - GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth; -- struct sockaddr_rc laddr, raddr; -+ struct sockaddr_rfcomm laddr, raddr; - bdaddr_t bdaddr; - int fd; - -@@ -53,15 +51,15 @@ - - smprintf(s, "Connecting to RF channel %i\n",port); - -- fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); -+ fd = socket(PF_BLUETOOTH, SOCK_STREAM, BLUETOOTH_PROTO_RFCOMM); - if (fd < 0) { - dbgprintf("Can't create socket\n"); - return ERR_DEVICENODRIVER; - } - -- bacpy(&laddr.rc_bdaddr, BDADDR_ANY); -- laddr.rc_family = AF_BLUETOOTH; -- laddr.rc_channel = 0; -+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY); -+ laddr.rfcomm_family = AF_BLUETOOTH; -+ laddr.rfcomm_channel = 0; - - if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) { - dbgprintf("Can't bind socket\n"); -@@ -70,9 +68,9 @@ - } - - str2ba(device, &bdaddr); -- bacpy(&raddr.rc_bdaddr, &bdaddr); -- raddr.rc_family = AF_BLUETOOTH; -- raddr.rc_channel = port; -+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr); -+ raddr.rfcomm_family = AF_BLUETOOTH; -+ raddr.rfcomm_channel = port; - - if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) { - dbgprintf("Can't connect\n"); |