Patchwork [4/4] ofono: Fix build with eglibc 2.17

login
register
mail settings
Submitter Khem Raj
Date Jan. 5, 2013, midnight
Message ID <9b989d3a02e356e4e83c90ad22508cca3a866f06.1357343832.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/42001/
State Accepted
Commit 6d722967e2b6905f2bc0b32fc30228ec889529ff
Headers show

Comments

Khem Raj - Jan. 5, 2013, midnight
include unistd.h explicitly to get ssize_t defined

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../ofono/ofono/missing-ssize_t.patch              |   23 ++++++++++++++++++++
 meta/recipes-connectivity/ofono/ofono_1.12.bb      |    3 ++-
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch

Patch

diff --git a/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch
new file mode 100644
index 0000000..71903c4
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono/missing-ssize_t.patch
@@ -0,0 +1,23 @@ 
+include unistd.h for getting ssize_t definitions
+Fixes errors like
+
+| In file included from src/sms.c:38:0:
+| src/storage.h:32:1: error: unknown type name 'ssize_t'
+| src/storage.h:36:1: error: unknown type name 'ssize_t'
+
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Index: ofono-1.12/src/storage.h
+===================================================================
+--- ofono-1.12.org/src/storage.h	2013-01-04 10:01:24.137804178 -0800
++++ ofono-1.12/src/storage.h	2013-01-04 10:02:09.325806426 -0800
+@@ -26,6 +26,7 @@
+ #endif
+ 
+ #include <fcntl.h>
++#include <unistd.h>
+ 
+ int create_dirs(const char *filename, const mode_t mode);
+ 
diff --git a/meta/recipes-connectivity/ofono/ofono_1.12.bb b/meta/recipes-connectivity/ofono/ofono_1.12.bb
index 1767971..c33ede4 100644
--- a/meta/recipes-connectivity/ofono/ofono_1.12.bb
+++ b/meta/recipes-connectivity/ofono/ofono_1.12.bb
@@ -3,8 +3,9 @@  require ofono.inc
 SRC_URI  = "\
   ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
   file://ofono \
+  file://missing-ssize_t.patch \
 "
-PR = "r0"
+PR = "r1"
 
 SRC_URI[md5sum] = "aa8924c0e8de3ec7ac5e41fe7df4cb99"
 SRC_URI[sha256sum] = "733b75bfd1b2a1925b6de532989c496b8ae17a746691120ef64cceb00b3ef751"