1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-01 20:33:08 +02:00
openwrt-xburst/toolchain/uClibc/patches-0.9.30.1/160-unifdef_fix.patch
florian d63472a177 [uClibc] more cygwin build fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-26 07:25:24 +00:00

44 lines
1.2 KiB
Diff

Index: 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-08-25 15:20:08.000000000 +0200
@@ -206,7 +206,11 @@
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 +516,11 @@
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 +534,11 @@
* help from skipcomment().
*/
static Linetype
-getline(void)
+#ifndef __CYGWIN__
+__getline(void)
+#else
+get_line(void)
+#endif
{
const char *cp;
int cursym;