From 1f0ba7c2b0429909ead5ae8fc015a827b08edf85 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Tue, 31 Aug 2010 11:42:01 +0800 Subject: sed: Fix ppc build failure sed will firstly check whether there is a working getline function in system, if not (ppc), it use its self-defined getline(). However in 4.1.2, this function definition is not match with its declaration. Fixes [BUGID #243] Also fixes metadata. Signed-off-by: Dongxiao Xu --- meta/packages/sed/sed-4.1.2/fix_return_type.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/packages/sed/sed-4.1.2/fix_return_type.patch (limited to 'meta/packages/sed/sed-4.1.2') diff --git a/meta/packages/sed/sed-4.1.2/fix_return_type.patch b/meta/packages/sed/sed-4.1.2/fix_return_type.patch new file mode 100644 index 000000000..d91960b3e --- /dev/null +++ b/meta/packages/sed/sed-4.1.2/fix_return_type.patch @@ -0,0 +1,16 @@ +Change the getline return type to match its declaration. + +Signed-off-by: Dongxiao Xu + +diff -urN sed-4.1.2-orig/lib/getline.c sed-4.1.2/lib/getline.c +--- sed-4.1.2-orig/lib/getline.c 2010-08-31 08:47:50.070094024 +0800 ++++ sed-4.1.2/lib/getline.c 2010-08-31 08:48:50.982178172 +0800 +@@ -30,7 +30,7 @@ + necessary. Returns the number of characters read (not including the + null terminator), or -1 on error or EOF. */ + +-size_t ++ssize_t + getline (lineptr, n, stream) + char **lineptr; + size_t *n; -- cgit v1.2.3