[package] hotplug2: Fix forking (#7033)
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches-0.9.30.1 / 160-unifdef_fix.patch
1 Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
2 ===================================================================
3 --- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
4 +++ uClibc-0.9.30.1/extra/scripts/unifdef.c 2009-08-25 15:20:08.000000000 +0200
5 @@ -206,7 +206,11 @@
6 static void error(const char *);
7 static int findsym(const char *);
8 static void flushline(bool);
9 -static Linetype getline(void);
10 +#ifndef __CYGWIN__
11 +static Linetype __getline(void);
12 +#else
13 +static Linetype get_line(void);
14 +#endif
15 static Linetype ifeval(const char **);
16 static void ignoreoff(void);
17 static void ignoreon(void);
18 @@ -512,7 +516,11 @@
19
20 for (;;) {
21 linenum++;
22 - lineval = getline();
23 +#ifndef __CYGWIN__
24 + lineval = __getline();
25 +#else
26 + lineval = get_line();
27 +#endif
28 trans_table[ifstate[depth]][lineval]();
29 debug("process %s -> %s depth %d",
30 linetype_name[lineval],
31 @@ -526,7 +534,11 @@
32 * help from skipcomment().
33 */
34 static Linetype
35 -getline(void)
36 +#ifndef __CYGWIN__
37 +__getline(void)
38 +#else
39 +get_line(void)
40 +#endif
41 {
42 const char *cp;
43 int cursym;