From c0126bf6e4f3e77051e1982a9fc9b2c897af22c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 12 Oct 2004 16:35:02 +0000 Subject: [PATCH] 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 --- src/kernel/libroot/Jamfile | 2 ++ src/kernel/libroot/libroot_init.c | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/kernel/libroot/Jamfile b/src/kernel/libroot/Jamfile index 7b141f36dc..ae93d16ca9 100755 --- a/src/kernel/libroot/Jamfile +++ b/src/kernel/libroot/Jamfile @@ -1,5 +1,7 @@ SubDir OBOS_TOP src kernel libroot ; +UsePrivateHeaders libroot ; + KernelObjects <$(SOURCE_GRIST)>libroot_init.c : -fPIC -DPIC diff --git a/src/kernel/libroot/libroot_init.c b/src/kernel/libroot/libroot_init.c index 481762d334..d9da5d32a5 100644 --- a/src/kernel/libroot/libroot_init.c +++ b/src/kernel/libroot/libroot_init.c @@ -4,13 +4,13 @@ */ +#include #include +#include + #include -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(); }