summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.30/200-getline-already-declared.patch
diff options
context:
space:
mode:
authorTitus von Boxberg" <titus@v9g.de>2011-08-22 07:38:19 (GMT)
committerTitus von Boxberg <titus@v9g.de>2011-08-22 07:38:19 (GMT)
commit7af1d22c17f50598e02b4be42b491efa44fffdd4 (patch)
tree945ed9ca54d39ddcb5f9497624bcf4a8b6f08959 /patches/uClibc/0.9.30/200-getline-already-declared.patch
parent6b9c9e74b2ecd86b97af25ae9fdb06538bc78b86 (diff)
libc/uClibc: portability fixes to install_headers
Add patch files for uClibc-0.9.30: extra/scripts/install_headers.sh: find must be called with path. extra/scripts/unifdef.c: getline is declared in <stdio.h>, use different name. Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net> Reported-by: "Titus von Boxberg" <titus@v9g.de> Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
Diffstat (limited to 'patches/uClibc/0.9.30/200-getline-already-declared.patch')
-rw-r--r--patches/uClibc/0.9.30/200-getline-already-declared.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30/200-getline-already-declared.patch b/patches/uClibc/0.9.30/200-getline-already-declared.patch
new file mode 100644
index 0000000..f57104b
--- /dev/null
+++ b/patches/uClibc/0.9.30/200-getline-already-declared.patch
@@ -0,0 +1,29 @@
+--- uClibc-0.9.30.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
++++ uClibc-0.9.30/extra/scripts/unifdef.c 2011-08-21 09:42:21.000000000 +0200
+@@ -206,7 +206,7 @@
+ static void error(const char *);
+ static int findsym(const char *);
+ static void flushline(bool);
+-static Linetype getline(void);
++static Linetype getlinetype(void);
+ static Linetype ifeval(const char **);
+ static void ignoreoff(void);
+ static void ignoreon(void);
+@@ -512,7 +512,7 @@
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = getlinetype();
+ trans_table[ifstate[depth]][lineval]();
+ debug("process %s -> %s depth %d",
+ linetype_name[lineval],
+@@ -526,7 +526,7 @@
+ * help from skipcomment().
+ */
+ static Linetype
+-getline(void)
++getlinetype(void)
+ {
+ const char *cp;
+ int cursym;