CLFS on Ubuntu 10.10, Chap. 5.4. Linux-Headers- fails

You are building CLFS 1.1.10-x86 on Ubuntu 10.10 and got stuck on the very beginning at 5.4.1. Installation of Linux-Headers with this error:

marius@m:~/linux-$ make ARCH=i386 headers_check
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:671: note: previous declaration of ‘getline’ was here
make[1]: *** [scripts/unifdef] Fehler 1
make: *** [headers_install] Fehler 2

This patch will help you:

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 (;;) {
-		lineval = getline();
+		lineval = parseline();
 		debug("process %s -> %s depth %d",
@@ -526,7 +526,7 @@  process(void)
  * help from skipcomment().
 static Linetype
 	const char *cp;
 	int cursym;