summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-10-10 19:59:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-10-10 19:59:49 +0200
commitb45a02c444117a90d202706013d71a56813990e1 (patch)
tree271d0dc09a20f8307bfe29ea04c7b014c8355f30
parent8759fa511c0464efaea926dcb1271c0ca95e4eb6 (diff)
add fix to compile uClibc based toolchain on Ubuntu
-rw-r--r--toolchain/uClibc/patches/getline.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/getline.patch b/toolchain/uClibc/patches/getline.patch
new file mode 100644
index 000000000..fb9f9bcc2
--- /dev/null
+++ b/toolchain/uClibc/patches/getline.patch
@@ -0,0 +1,30 @@
+diff -Nur uClibc-0.9.30.1.orig/extra/scripts/unifdef.c uClibc-0.9.30.1/extra/scripts/unifdef.c
+--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
++++ uClibc-0.9.30.1/extra/scripts/unifdef.c 2009-10-10 12:37:04.230249774 +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 get_line(void);
+ static Linetype ifeval(const char **);
+ static void ignoreoff(void);
+ static void ignoreon(void);
+@@ -512,7 +512,7 @@
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = get_line();
+ 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)
++get_line(void)
+ {
+ const char *cp;
+ int cursym;