From b2bd7b67201f8fdb181729b50ed9fa8d03c47deb Mon Sep 17 00:00:00 2001 From: Nils Durner Date: Tue, 14 Aug 2007 21:15:09 +0000 Subject: [PATCH] plibc --- src/daemon/daemon.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 3b2ebab0..34f76ce7 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -620,7 +620,16 @@ void __attribute__ ((destructor)) MHD_pthread_handlers_ltdl_fini () { sigaction (SIGALRM, &old, &sig); } +#else +void __attribute__ ((constructor)) MHD_win_ltdl_init () +{ + plibc_init("CRISP", "libmicrohttpd"); +} +void __attribute__ ((destructor)) MHD_win_ltdl_fini () +{ + plibc_shutdown(); +} #endif /* end of daemon.c */