Skip to contentSkip to conversation

obexd: Include unistd.h to get ssize_t definition

PATCH Applied Khem Raj 2 participants 2 messages Jan 9, 2013 – Jan 10, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 obexd: Include unistd.h to get ssize_t definition

This error is exposed with eglibc 2.17

---
 .../obex/obexd/ssize_t_definition.patch            |   32 ++++++++++++++++++++
 meta-gnome/recipes-connectivity/obex/obexd_0.44.bb |    6 ++--
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch
meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch new file +32 -0
new file mode 100644
index 0000000..2009dcd
@@ -0,0 +1,32 @@
+include unistd.h to get ssize_t definitions
+
+Fixes errors like
+
+| In file included from plugins/mas.c:36:0:
+| ./src/obex.h:39:1: error: unknown type name 'ssize_t'
+| ./src/obex.h:49:1: error: unknown type name 'ssize_t'
+| ./src/obex.h:50:1: error: unknown type name 'ssize_t'
+| In file included from plugins/mas.c:38:0:
+| ./src/mimetype.h:36:2: error: expected specifier-qualifier-list before 'ssize_t'
+| In file included from plugins/mas.c:39:0:
+| plugins/filesystem.h:24:1: error: unknown type name 'ssize_t'
+| plugins/mas.c:550:1: error: unknown type name 'ssize_t'
+| plugins/mas.c:557:1: error: unknown type name 'ssize_t'
+| plugins/mas.c: In function 'any_read':
+| plugins/mas.c:560:2: error: unknown type name 'ssize_t'
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+Index: obexd-0.44/plugins/mas.c
+===================================================================
+--- obexd-0.44.orig/plugins/mas.c	2012-01-11 14:53:53.000000000 -0800
++++ obexd-0.44/plugins/mas.c	2013-01-08 12:51:12.681882174 -0800
+@@ -29,6 +29,7 @@
+ #include <glib.h>
+ #include <fcntl.h>
+ #include <inttypes.h>
++#include <unistd.h>
+ 
+ #include "obexd.h"
+ #include "plugin.h"
meta-gnome/recipes-connectivity/obex/obexd_0.44.bb +4 -2
index 77d7f1e..384ce05 100644
@@ -4,9 +4,11 @@ DEPENDS = "openobex glib-2.0 dbus bluez4 libical"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "files://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/obexd-${PV}.tar.gz"
+SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/obexd-${PV}.tar.gz \
+           file://ssize_t_definition.patch \
+          "
 SRC_URI[md5sum] = "3fb9cb9d7ab119753253ff784235a364"
 SRC_URI[sha256sum] = "104fc50eb8bf41d690d31588c3a4829a75dc7738b1c76cf260171d8f525da758"
 
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 1 line · Khem Raj

This error is exposed with eglibc 2.17

Merged, thanks!

Quoted 72 lines
---
 .../obex/obexd/ssize_t_definition.patch            |   32 ++++++++++++++++++++
 meta-gnome/recipes-connectivity/obex/obexd_0.44.bb |    6 ++--
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch
meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch new file +32 -0
new file mode 100644
index 0000000..2009dcd
@@ -0,0 +1,32 @@
+include unistd.h to get ssize_t definitions
+
+Fixes errors like
+
+| In file included from plugins/mas.c:36:0:
+| ./src/obex.h:39:1: error: unknown type name 'ssize_t'
+| ./src/obex.h:49:1: error: unknown type name 'ssize_t'
+| ./src/obex.h:50:1: error: unknown type name 'ssize_t'
+| In file included from plugins/mas.c:38:0:
+| ./src/mimetype.h:36:2: error: expected specifier-qualifier-list before 'ssize_t'
+| In file included from plugins/mas.c:39:0:
+| plugins/filesystem.h:24:1: error: unknown type name 'ssize_t'
+| plugins/mas.c:550:1: error: unknown type name 'ssize_t'
+| plugins/mas.c:557:1: error: unknown type name 'ssize_t'
+| plugins/mas.c: In function 'any_read':
+| plugins/mas.c:560:2: error: unknown type name 'ssize_t'
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+Index: obexd-0.44/plugins/mas.c
+===================================================================
+--- obexd-0.44.orig/plugins/mas.c	2012-01-11 14:53:53.000000000 -0800
++++ obexd-0.44/plugins/mas.c	2013-01-08 12:51:12.681882174 -0800
+@@ -29,6 +29,7 @@
+ #include <glib.h>
+ #include <fcntl.h>
+ #include <inttypes.h>
++#include <unistd.h>
+ 
+ #include "obexd.h"
+ #include "plugin.h"
meta-gnome/recipes-connectivity/obex/obexd_0.44.bb +4 -2
index 77d7f1e..384ce05 100644
@@ -4,9 +4,11 @@ DEPENDS = "openobex glib-2.0 dbus bluez4 libical"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "files://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/obexd-${PV}.tar.gz"
+SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/obexd-${PV}.tar.gz \
+           file://ssize_t_definition.patch \
+          "
 SRC_URI[md5sum] = "3fb9cb9d7ab119753253ff784235a364"
 SRC_URI[sha256sum] = "104fc50eb8bf41d690d31588c3a4829a75dc7738b1c76cf260171d8f525da758"
 
Signature · 7 lines
1.7.9.5


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]