mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
more linux kernel cygwin build fixes
SVN-Revision: 17402
This commit is contained in:
parent
ffa2d292fe
commit
f2be850ea3
@ -1,29 +1,41 @@
|
|||||||
--- a/scripts/unifdef.c
|
--- a/scripts/unifdef.c
|
||||||
+++ b/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 void error(const char *);
|
||||||
static int findsym(const char *);
|
static int findsym(const char *);
|
||||||
static void flushline(bool);
|
static void flushline(bool);
|
||||||
-static Linetype getline(void);
|
-static Linetype getline(void);
|
||||||
|
+#ifndef __CYGWIN__
|
||||||
+static Linetype __getline(void);
|
+static Linetype __getline(void);
|
||||||
|
+#else
|
||||||
|
+static Linetype get_line(void);
|
||||||
|
+#endif
|
||||||
static Linetype ifeval(const char **);
|
static Linetype ifeval(const char **);
|
||||||
static void ignoreoff(void);
|
static void ignoreoff(void);
|
||||||
static void ignoreon(void);
|
static void ignoreon(void);
|
||||||
@@ -512,7 +512,7 @@ process(void)
|
@@ -512,7 +516,11 @@ process(void)
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
linenum++;
|
linenum++;
|
||||||
- lineval = getline();
|
- lineval = getline();
|
||||||
|
+#ifndef __CYGWIN__
|
||||||
+ lineval = __getline();
|
+ lineval = __getline();
|
||||||
|
+#else
|
||||||
|
+ lineval = get_line();
|
||||||
|
+#endif
|
||||||
trans_table[ifstate[depth]][lineval]();
|
trans_table[ifstate[depth]][lineval]();
|
||||||
debug("process %s -> %s depth %d",
|
debug("process %s -> %s depth %d",
|
||||||
linetype_name[lineval],
|
linetype_name[lineval],
|
||||||
@@ -526,7 +526,7 @@ process(void)
|
@@ -526,7 +534,11 @@ process(void)
|
||||||
* help from skipcomment().
|
* help from skipcomment().
|
||||||
*/
|
*/
|
||||||
static Linetype
|
static Linetype
|
||||||
-getline(void)
|
-getline(void)
|
||||||
|
+#ifndef __CYGWIN__
|
||||||
+__getline(void)
|
+__getline(void)
|
||||||
|
+#else
|
||||||
|
+get_line(void)
|
||||||
|
+#endif
|
||||||
{
|
{
|
||||||
const char *cp;
|
const char *cp;
|
||||||
int cursym;
|
int cursym;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user