patches/uClibc/0.9.30/200-getline-already-declared.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
titus@2627
     1
--- uClibc-0.9.30.orig/extra/scripts/unifdef.c	2008-04-28 01:10:00.000000000 +0200
titus@2627
     2
+++ uClibc-0.9.30/extra/scripts/unifdef.c	2011-08-21 09:42:21.000000000 +0200
titus@2627
     3
@@ -206,7 +206,7 @@
titus@2627
     4
 static void             error(const char *);
titus@2627
     5
 static int              findsym(const char *);
titus@2627
     6
 static void             flushline(bool);
titus@2627
     7
-static Linetype         getline(void);
titus@2627
     8
+static Linetype         getlinetype(void);
titus@2627
     9
 static Linetype         ifeval(const char **);
titus@2627
    10
 static void             ignoreoff(void);
titus@2627
    11
 static void             ignoreon(void);
titus@2627
    12
@@ -512,7 +512,7 @@
titus@2627
    13
 
titus@2627
    14
 	for (;;) {
titus@2627
    15
 		linenum++;
titus@2627
    16
-		lineval = getline();
titus@2627
    17
+		lineval = getlinetype();
titus@2627
    18
 		trans_table[ifstate[depth]][lineval]();
titus@2627
    19
 		debug("process %s -> %s depth %d",
titus@2627
    20
 		    linetype_name[lineval],
titus@2627
    21
@@ -526,7 +526,7 @@
titus@2627
    22
  * help from skipcomment().
titus@2627
    23
  */
titus@2627
    24
 static Linetype
titus@2627
    25
-getline(void)
titus@2627
    26
+getlinetype(void)
titus@2627
    27
 {
titus@2627
    28
 	const char *cp;
titus@2627
    29
 	int cursym;