[oe] [meta-gnome][PATCH] obexd: Include unistd.h to get ssize_t definition

Martin Jansa martin.jansa at gmail.com
Thu Jan 10 11:19:05 UTC 2013


On Tue, Jan 08, 2013 at 09:33:34PM -0800, Khem Raj wrote:
> This error is exposed with eglibc 2.17

Merged, thanks!

> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  .../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
> 
> diff --git a/meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch b/meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch
> new file mode 100644
> index 0000000..2009dcd
> --- /dev/null
> +++ b/meta-gnome/recipes-connectivity/obex/obexd/ssize_t_definition.patch
> @@ -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 <raj.khem at gmail.com>
> +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"
> diff --git a/meta-gnome/recipes-connectivity/obex/obexd_0.44.bb b/meta-gnome/recipes-connectivity/obex/obexd_0.44.bb
> index 77d7f1e..384ce05 100644
> --- a/meta-gnome/recipes-connectivity/obex/obexd_0.44.bb
> +++ b/meta-gnome/recipes-connectivity/obex/obexd_0.44.bb
> @@ -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"
>  
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20130110/483a9980/attachment-0002.sig>


More information about the Openembedded-devel mailing list