aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches-2.6.28
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-08-26 07:26:00 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-08-26 07:26:00 +0000
commitc911d87229fb0c81d068eeecf3587ea0254e6f63 (patch)
treeae408ef52b62600e297d342d53d2de07d7fa4931 /target/linux/generic-2.6/patches-2.6.28
parent00b84e2dc50f8a4793e6da277e5953c30d5d7575 (diff)
downloadupstream-c911d87229fb0c81d068eeecf3587ea0254e6f63.tar.gz
upstream-c911d87229fb0c81d068eeecf3587ea0254e6f63.tar.bz2
upstream-c911d87229fb0c81d068eeecf3587ea0254e6f63.zip
[kernel] more linux kernel cygwin build fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17402 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.28')
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch18
1 files changed, 15 insertions, 3 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch b/target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch
index ec32c514b3..2b0f1cfc63 100644
--- a/target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch
+++ b/target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch
@@ -1,29 +1,41 @@
--- a/scripts/unifdef.c
+++ b/scripts/unifdef.c
-@@ -206,7 +206,7 @@ static void done(void);
+@@ -206,7 +206,11 @@ static void done(void);
static void error(const char *);
static int findsym(const char *);
static void flushline(bool);
-static Linetype getline(void);
++#ifndef __CYGWIN__
+static Linetype __getline(void);
++#else
++static Linetype get_line(void);
++#endif
static Linetype ifeval(const char **);
static void ignoreoff(void);
static void ignoreon(void);
-@@ -512,7 +512,7 @@ process(void)
+@@ -512,7 +516,11 @@ process(void)
for (;;) {
linenum++;
- lineval = getline();
++#ifndef __CYGWIN__
+ lineval = __getline();
++#else
++ lineval = get_line();
++#endif
trans_table[ifstate[depth]][lineval]();
debug("process %s -> %s depth %d",
linetype_name[lineval],
-@@ -526,7 +526,7 @@ process(void)
+@@ -526,7 +534,11 @@ process(void)
* help from skipcomment().
*/
static Linetype
-getline(void)
++#ifndef __CYGWIN__
+__getline(void)
++#else
++get_line(void)
++#endif
{
const char *cp;
int cursym;