mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 07:04:28 +00:00
16d86dcbe2
svn path=/nixpkgs/trunk/; revision=26741
35 lines
1,012 B
Diff
35 lines
1,012 B
Diff
Allow compilation with recent versions of Glibc.
|
|
From https://patchwork.kernel.org/patch/11166/.
|
|
|
|
diff --git a/scripts/unifdef.c b/scripts/unifdef.c
|
|
index 552025e..977e682 100644
|
|
--- a/scripts/unifdef.c
|
|
+++ b/scripts/unifdef.c
|
|
@@ -206,7 +206,7 @@ static void done(void);
|
|
static void error(const char *);
|
|
static int findsym(const char *);
|
|
static void flushline(bool);
|
|
-static Linetype getline(void);
|
|
+static Linetype parseline(void);
|
|
static Linetype ifeval(const char **);
|
|
static void ignoreoff(void);
|
|
static void ignoreon(void);
|
|
@@ -512,7 +512,7 @@ process(void)
|
|
|
|
for (;;) {
|
|
linenum++;
|
|
- lineval = getline();
|
|
+ lineval = parseline();
|
|
trans_table[ifstate[depth]][lineval]();
|
|
debug("process %s -> %s depth %d",
|
|
linetype_name[lineval],
|
|
@@ -526,7 +526,7 @@ process(void)
|
|
* help from skipcomment().
|
|
*/
|
|
static Linetype
|
|
-getline(void)
|
|
+parseline(void)
|
|
{
|
|
const char *cp;
|
|
int cursym;
|