summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2009-04-28 11:39:38 +0100
committerMarcin Juszkiewicz <marcin@buglabs.net>2009-10-22 14:49:29 +0200
commit3e23549d0aadc710f6d252861b5028f2a6a51b17 (patch)
treeb580fe84a7c54ea5c30738bd983b84c186ccace8
parent23212b4c3d9a00a4d6ac695e4115a3bb92aee4eb (diff)
downloadpoky-3e23549d0aadc710f6d252861b5028f2a6a51b17.tar.gz
poky-3e23549d0aadc710f6d252861b5028f2a6a51b17.tar.bz2
poky-3e23549d0aadc710f6d252861b5028f2a6a51b17.zip
linux-libc-headers_2.6.20.bb : more modern glibc expose getline from stdio.h rename the function so not to cause a clash
Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net>
-rw-r--r--meta/packages/linux-libc-headers/files/unifdef.patch31
-rw-r--r--meta/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb5
2 files changed, 34 insertions, 2 deletions
diff --git a/meta/packages/linux-libc-headers/files/unifdef.patch b/meta/packages/linux-libc-headers/files/unifdef.patch
new file mode 100644
index 0000000000..bda8860009
--- /dev/null
+++ b/meta/packages/linux-libc-headers/files/unifdef.patch
@@ -0,0 +1,31 @@
+Index: linux-2.6.20/scripts/unifdef.c
+===================================================================
+--- linux-2.6.20.orig/scripts/unifdef.c
++++ linux-2.6.20/scripts/unifdef.c
+@@ -206,7 +206,7 @@ static void done(void);
+ static void error(const char *);
+ static int findsym(const char *);
+ static void flushline(bool);
+-static Linetype getline(void);
++static Linetype parseline(void);
+ static Linetype ifeval(const char **);
+ static void ignoreoff(void);
+ static void ignoreon(void);
+@@ -512,7 +512,7 @@ process(void)
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = parseline();
+ trans_table[ifstate[depth]][lineval]();
+ debug("process %s -> %s depth %d",
+ linetype_name[lineval],
+@@ -526,7 +526,7 @@ process(void)
+ * help from skipcomment().
+ */
+ static Linetype
+-getline(void)
++parseline(void)
+ {
+ const char *cp;
+ int cursym;
diff --git a/meta/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb
index c857336118..9ade91ca4b 100644
--- a/meta/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb
+++ b/meta/packages/linux-libc-headers/linux-libc-headers_2.6.20.bb
@@ -2,10 +2,11 @@ require linux-libc-headers.inc
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
-PR = "r8"
+PR = "r9"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
- file://procinfo.h"
+ file://procinfo.h \
+ file://unifdef.patch;patch=1"
S = "${WORKDIR}/linux-${PV}"