X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.c;h=38770a685a7fbc1881610e92061a9f6599208b11;hb=eac461c1f1ca91cfe282c779291d582ed6b336cb;hp=f66a7e562b67bc3c8a33265f3034a498d6d96011;hpb=d47b2f66bdb7abc9de99658e8dbdd1c7c108881e;p=sbcl.git diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index f66a7e5..38770a6 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include "runtime.h" #ifndef LISP_FEATURE_WIN32 #include #endif @@ -42,7 +42,9 @@ #include #endif +#if !(defined(LISP_FEATURE_WIN32) && defined(LISP_FEATURE_SB_THREAD)) #include "signal.h" +#endif #include "runtime.h" #include "vars.h" @@ -340,6 +342,10 @@ char *core_string; struct runtime_options *runtime_options; char *saved_runtime_path = NULL; +#if defined(LISP_FEATURE_WIN32) && defined(LISP_FEATURE_SB_THREAD) +void pthreads_win32_init(); +#endif + int main(int argc, char *argv[], char *envp[]) @@ -364,6 +370,11 @@ main(int argc, char *argv[], char *envp[]) lispobj initial_function; const char *sbcl_home = getenv("SBCL_HOME"); +#if defined(LISP_FEATURE_WIN32) && defined(LISP_FEATURE_SB_THREAD) + os_preinit(); + pthreads_win32_init(); +#endif + interrupt_init(); block_blockable_signals(0, 0); @@ -544,6 +555,7 @@ main(int argc, char *argv[], char *envp[]) * systems (e.g. Alpha) arch_init() needs need os_vm_page_size, so * it must follow os_init(). -- WHN 2000-01-26 */ os_init(argv, envp); + dyndebug_init(); /* after os_init: do not print output before execve */ arch_init(); gc_init(); validate();