diff options
Diffstat (limited to 'meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch')
-rw-r--r-- | meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch b/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch new file mode 100644 index 0000000000..d91960b3ee --- /dev/null +++ b/meta/recipes-extended/sed/sed-4.1.2/fix_return_type.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Change the getline return type to match its declaration. | ||
2 | |||
3 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> | ||
4 | |||
5 | diff -urN sed-4.1.2-orig/lib/getline.c sed-4.1.2/lib/getline.c | ||
6 | --- sed-4.1.2-orig/lib/getline.c 2010-08-31 08:47:50.070094024 +0800 | ||
7 | +++ sed-4.1.2/lib/getline.c 2010-08-31 08:48:50.982178172 +0800 | ||
8 | @@ -30,7 +30,7 @@ | ||
9 | necessary. Returns the number of characters read (not including the | ||
10 | null terminator), or -1 on error or EOF. */ | ||
11 | |||
12 | -size_t | ||
13 | +ssize_t | ||
14 | getline (lineptr, n, stream) | ||
15 | char **lineptr; | ||
16 | size_t *n; | ||