aboutsummaryrefslogtreecommitdiff
path: root/utils/bluez/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-01-08 20:22:28 -0800
committerRosen Penev <rosenp@gmail.com>2022-01-08 20:39:15 -0800
commitdf8a0f324d377d1ebdca11fef45f877c3256185d (patch)
treee7caa4b2715240160ffe02ad8cc9b51e3fa49250 /utils/bluez/patches
parente7547d980d21646009a3492b09c57ea62ffe0f22 (diff)
bluez: fix compilation with glibc
sync() is implemented now. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/bluez/patches')
-rw-r--r--utils/bluez/patches/206-sync.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/bluez/patches/206-sync.patch b/utils/bluez/patches/206-sync.patch
new file mode 100644
index 000000000..265400e64
--- /dev/null
+++ b/utils/bluez/patches/206-sync.patch
@@ -0,0 +1,27 @@
+--- a/obexd/client/sync.c
++++ b/obexd/client/sync.c
+@@ -209,7 +209,7 @@ static void sync_remove(struct obc_sessi
+ g_dbus_unregister_interface(conn, path, SYNC_INTERFACE);
+ }
+
+-static struct obc_driver sync = {
++static struct obc_driver sync2 = {
+ .service = "SYNC",
+ .uuid = SYNC_UUID,
+ .target = OBEX_SYNC_UUID,
+@@ -228,7 +228,7 @@ int sync_init(void)
+ if (!conn)
+ return -EIO;
+
+- err = obc_driver_register(&sync);
++ err = obc_driver_register(&sync2);
+ if (err < 0) {
+ dbus_connection_unref(conn);
+ conn = NULL;
+@@ -245,5 +245,5 @@ void sync_exit(void)
+ dbus_connection_unref(conn);
+ conn = NULL;
+
+- obc_driver_unregister(&sync);
++ obc_driver_unregister(&sync2);
+ }