forked from mirrors/nixpkgs
Patching uclibc for it to cope well with glibc-2.10 and above
This goes similar to the kernel-headers recent patch for the same file and purpose. svn path=/nixpkgs/branches/stdenv-updates/; revision=18743
This commit is contained in:
parent
fe75d617b2
commit
980d7c04a0
|
@ -24,6 +24,8 @@ stdenv.mkDerivation {
|
|||
make oldconfig
|
||||
'';
|
||||
|
||||
patches = [ ./unifdef-getline.patch ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
make PREFIX=$out install
|
||||
|
|
31
pkgs/os-specific/linux/uclibc/unifdef-getline.patch
Normal file
31
pkgs/os-specific/linux/uclibc/unifdef-getline.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
diff --git a/extra/scripts/unifdef.c b/extra/scripts/unifdef.c
|
||||
index 552025e..977e682 100644
|
||||
--- a/extra/scripts/unifdef.c
|
||||
+++ b/extra/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;
|
Loading…
Reference in a new issue