diff --git a/src/system/glue/start_dyn.c b/src/system/glue/start_dyn.c index d0ca4dd828..e2f141a160 100644 --- a/src/system/glue/start_dyn.c +++ b/src/system/glue/start_dyn.c @@ -1,5 +1,5 @@ /* - * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. * * Copyright 2001, Travis Geiselbrecht. All rights reserved. @@ -14,7 +14,7 @@ extern int main(int argc, char **argv, char **env); -extern void _init_c_library_(void); +extern void _init_c_library_(int argc, char **argv, char **env); extern void _call_init_routines_(void); int _start(int argc, char **argv, char **env); @@ -37,7 +37,7 @@ _start(int argc, char **argv, char **environment) // These two are called to make our glue code usable under BeOS R5 // - in Haiku, they are both empty. - _init_c_library_(); + _init_c_library_(argc, argv, environment); _call_init_routines_(); returnCode = main(argc, argv, environment);