diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/start.c | 10 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/statfs.h | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/bits/statfs.h | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/bits/statfs.h | 5 |
4 files changed, 18 insertions, 7 deletions
diff --git a/sysdeps/unix/start.c b/sysdeps/unix/start.c index 49d17810ad..41fb75e063 100644 --- a/sysdeps/unix/start.c +++ b/sysdeps/unix/start.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 93, 95, 96, 97, 98 Free Software Foundation, Inc. +/* Copyright (C) 1991, 93, 1995-1998, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -36,12 +36,14 @@ weak_alias (__data_start, data_start) #endif #ifndef errno -volatile int __errno; +/* __errno must be initialized since otherwise one cannot create an + alias (at least on some platforms). */ +volatile int __errno = 0; strong_alias (__errno, errno) #endif -extern void __libc_init __P ((int argc, char **argv, char **envp)); -extern int main __P ((int argc, char **argv, char **envp)); +extern void __libc_init (int argc, char **argv, char **envp); +extern int main (int argc, char **argv, char **envp); /* Not a prototype because it gets called strangely. */ diff --git a/sysdeps/unix/sysv/linux/bits/statfs.h b/sysdeps/unix/sysv/linux/bits/statfs.h index 31ae564b46..7bf59ec9fc 100644 --- a/sysdeps/unix/sysv/linux/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/bits/statfs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -59,3 +59,6 @@ struct statfs64 int f_spare[6]; }; #endif + +/* Tell code we have this member. */ +#define _STATFS_F_NAMELEN diff --git a/sysdeps/unix/sysv/linux/mips/bits/statfs.h b/sysdeps/unix/sysv/linux/mips/bits/statfs.h index 36d9996a69..1099ae1f5e 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/mips/bits/statfs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997 Free Software Foundation, Inc. +/* Copyright (C) 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -67,3 +67,6 @@ struct statfs64 long int f_spare[6]; }; #endif + +/* Tell code we have these members. */ +#define _STATFS_F_NAMELEN diff --git a/sysdeps/unix/sysv/linux/sparc/bits/statfs.h b/sysdeps/unix/sysv/linux/sparc/bits/statfs.h index 2037634007..0bda6dca45 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/statfs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -59,3 +59,6 @@ struct statfs64 long int f_spare[6]; }; #endif + +/* Tell code we have these members. */ +#define _STATFS_F_NAMELEN |