patches/glibc/2.1.3/glibc-2.1.3-allow-gcc-3.4-mntent.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Fixes compilation with gcc-3.4.0:
     2 
     3 mntent_r.c: In function `__getmntent_r':
     4 mntent_r.c:146: error: label at end of compound statement
     5 mntent_r.c: In function `__addmntent':
     6 mntent_r.c:214: warning: implicit declaration of function `alloca'
     7 
     8 http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/misc/mntent_r.c.diff?r1=1.9&r2=1.11&cvsroot=glibc
     9 
    10 ===================================================================
    11 RCS file: /cvs/glibc/libc/misc/mntent_r.c,v
    12 retrieving revision 1.9
    13 retrieving revision 1.11
    14 diff -u -r1.9 -r1.11
    15 --- libc/misc/mntent_r.c	1999/07/26 01:45:32	1.9
    16 +++ libc/misc/mntent_r.c	2000/11/28 07:27:14	1.11
    17 @@ -1,5 +1,5 @@
    18  /* Utilities for reading/writing fstab, mtab, etc.
    19 -   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    20 +   Copyright (C) 1995,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
    21     This file is part of the GNU C Library.
    22  
    23     The GNU C Library is free software; you can redistribute it and/or
    24 @@ -17,6 +17,7 @@
    25     write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    26     Boston, MA 02111-1307, USA.  */
    27  
    28 +#include <alloca.h>
    29  #include <mntent.h>
    30  #include <stdio.h>
    31  #include <string.h>
    32 @@ -143,6 +144,7 @@
    33      case 1:
    34        mp->mnt_passno = 0;
    35      case 2:
    36 +      break;
    37      }
    38    funlockfile (stream);
    39