patches/glibc/2.1.3/glibc-2.1.3-allow-gcc-3.4-mntent.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.1.3/glibc-2.1.3-allow-gcc-3.4-mntent.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +Fixes compilation with gcc-3.4.0:
     1.5 +
     1.6 +mntent_r.c: In function `__getmntent_r':
     1.7 +mntent_r.c:146: error: label at end of compound statement
     1.8 +mntent_r.c: In function `__addmntent':
     1.9 +mntent_r.c:214: warning: implicit declaration of function `alloca'
    1.10 +
    1.11 +http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/misc/mntent_r.c.diff?r1=1.9&r2=1.11&cvsroot=glibc
    1.12 +
    1.13 +===================================================================
    1.14 +RCS file: /cvs/glibc/libc/misc/mntent_r.c,v
    1.15 +retrieving revision 1.9
    1.16 +retrieving revision 1.11
    1.17 +diff -u -r1.9 -r1.11
    1.18 +--- libc/misc/mntent_r.c	1999/07/26 01:45:32	1.9
    1.19 ++++ libc/misc/mntent_r.c	2000/11/28 07:27:14	1.11
    1.20 +@@ -1,5 +1,5 @@
    1.21 + /* Utilities for reading/writing fstab, mtab, etc.
    1.22 +-   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    1.23 ++   Copyright (C) 1995,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
    1.24 +    This file is part of the GNU C Library.
    1.25 + 
    1.26 +    The GNU C Library is free software; you can redistribute it and/or
    1.27 +@@ -17,6 +17,7 @@
    1.28 +    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.29 +    Boston, MA 02111-1307, USA.  */
    1.30 + 
    1.31 ++#include <alloca.h>
    1.32 + #include <mntent.h>
    1.33 + #include <stdio.h>
    1.34 + #include <string.h>
    1.35 +@@ -143,6 +144,7 @@
    1.36 +     case 1:
    1.37 +       mp->mnt_passno = 0;
    1.38 +     case 2:
    1.39 ++      break;
    1.40 +     }
    1.41 +   funlockfile (stream);
    1.42 +