Now uses the prototype definitions of libroot_private.h instead of defining

them locally.
Added __init_fork().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9306 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-10-12 16:35:02 +00:00
parent 0214622f56
commit c0126bf6e4
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,7 @@
SubDir OBOS_TOP src kernel libroot ;
UsePrivateHeaders libroot ;
KernelObjects
<$(SOURCE_GRIST)>libroot_init.c
: -fPIC -DPIC

View File

@ -4,13 +4,13 @@
*/
#include <libroot_private.h>
#include <user_runtime.h>
#include <fork.h>
#include <string.h>
extern void __init__image(struct uspace_program_args const *args);
extern void __init__dlfcn(struct uspace_program_args const *args);
void initialize_before(image_id imageID, struct uspace_program_args const *args);
char *__progname = NULL;
@ -37,8 +37,9 @@ initialize_before(image_id imageID, struct uspace_program_args const *args)
__progname++;
}
__init__image(args);
__init__dlfcn(args);
__init_image(args);
__init_dlfcn(args);
__init_fork();
}