diff options
author | Oleg O. Chukaev <oleg.chukaev@mail.ru> | 2010-07-02 12:26:19 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-07-02 12:26:19 -0500 |
commit | 38c993ee3bea7b68fe82bd0e24a6d709c1fd8dc4 (patch) | |
tree | 0889d386bd5ba3332868dd07f9a9e2c4ee8bf514 /misc/uni2ascii/01_getline_posix2008_fix.diff | |
parent | b97b095b6fc79828faba0cfbb5090c88e1d01914 (diff) | |
download | slackbuilds-38c993ee3bea7b68fe82bd0e24a6d709c1fd8dc4.tar.gz |
misc/uni2ascii: Added (unicode to ascii converter)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/uni2ascii/01_getline_posix2008_fix.diff')
-rw-r--r-- | misc/uni2ascii/01_getline_posix2008_fix.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/misc/uni2ascii/01_getline_posix2008_fix.diff b/misc/uni2ascii/01_getline_posix2008_fix.diff new file mode 100644 index 0000000000..347063dfcc --- /dev/null +++ b/misc/uni2ascii/01_getline_posix2008_fix.diff @@ -0,0 +1,28 @@ +Description: +In eglibc <= 2.9, getline was only defined if _GNU_SOURCE was defined. In +eglibc 2.10, getline is always defined (since it became a standard in +POSIX2008). The uni2ascii already has a function named getline(), which now +conflicts with glibc's. Patch will rename getline() to get_line() to fix the +problem. +Author: Kartik Mistry <kartik@debian.org> +Debian bug: http://bugs.debian.org/552870 +--- a/ascii2uni.c ++++ b/ascii2uni.c +@@ -463,7 +463,7 @@ + fprintf(stderr,"Failed to allocate buffer for input line.\n"); + exit(2); + } +- while ((read = getline(&lbuf, &len, infp)) != -1) { ++ while ((read = get_line(&lbuf, &len, infp)) != -1) { + AddNewlineP = 1; + LineNo++; + last = read - 1; +@@ -848,7 +848,7 @@ + } + + int +-getline (lineptr, n, stream) ++get_line (lineptr, n, stream) + char **lineptr; + size_t *n; + FILE *stream; |