diff options
author | mp <mp@FreeBSD.org> | 2001-07-31 16:10:51 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2001-07-31 16:10:51 +0000 |
commit | eb299211aeebd7b080100b6dabe27a754a6c36d7 (patch) | |
tree | bb23e32d13cbdaa0362045bd80d92448d404fdd6 /lib/csu | |
parent | c0101eaa527103d7db314bb1ca041727af69882e (diff) | |
download | FreeBSD-src-eb299211aeebd7b080100b6dabe27a754a6c36d7.zip FreeBSD-src-eb299211aeebd7b080100b6dabe27a754a6c36d7.tar.gz |
Fix compilation errors by adding forward declarations and fix typo.
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/powerpc/crt1.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/csu/powerpc/crt1.c b/lib/csu/powerpc/crt1.c index 6311791..38befe4 100644 --- a/lib/csu/powerpc/crt1.c +++ b/lib/csu/powerpc/crt1.c @@ -47,6 +47,9 @@ #include <stdlib.h> #include "crtbrand.c" +struct Struct_Obj_Entry; +struct ps_strings; + #pragma weak _DYNAMIC extern int _DYNAMIC; @@ -65,18 +68,19 @@ extern int etext; * First 5 arguments are specified by the PowerPC SVR4 ABI. * The last argument, ps_strings, is a BSD extension. */ -void _start __P((int, char **, char **, const Obj_Entry *, +void _start __P((int, char **, char **, const struct Struct_Obj_Entry *, void (*) __P((void)), struct ps_strings *)); char **environ; char *__progname = ""; +struct ps_strings *__ps_strings; /* The entry function. */ void _start(argc, argv, envp, obj, cleanup, ps_strings) int argc; char **argv, **envp; - const Obj_Entry *obj; /* from shared loader */ + const struct Struct_Obj_Entry *obj; /* from shared loader */ void (*cleanup) __P((void)); /* from shared loader */ struct ps_strings *ps_strings; /* BSD extension */ { @@ -106,7 +110,7 @@ _start(argc, argv, envp, obj, cleanup, ps_strings) monstartup(&eprol, &etext); #endif _init(); - exit( main(argc, argv, env) ); + exit( main(argc, argv, envp) ); } #ifdef GCRT |