diff options
Diffstat (limited to 'sysdeps/unix/start.c')
-rw-r--r-- | sysdeps/unix/start.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/unix/start.c b/sysdeps/unix/start.c index 49d1781..41fb75e 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. */ |