more linux kernel cygwin build fixes
authorFlorian Fainelli <florian@openwrt.org>
Wed, 26 Aug 2009 07:26:00 +0000 (07:26 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 26 Aug 2009 07:26:00 +0000 (07:26 +0000)
SVN-Revision: 17402

target/linux/generic-2.6/patches-2.6.28/906-unifdef_getline.patch

index ec32c514b340013f9a6d0b4fff78f6c35486b252..2b0f1cfc63a3a1177fdfd1967cf4c2fe263518aa 100644 (file)
@@ -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;