gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8179 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r8179 - libmicrohttpd/src/daemon
Date: Mon, 2 Feb 2009 22:51:15 -0700 (MST)

Author: grothoff
Date: 2009-02-02 22:51:14 -0700 (Mon, 02 Feb 2009)
New Revision: 8179

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
w32

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2009-02-03 05:49:16 UTC (rev 8178)
+++ libmicrohttpd/src/daemon/daemon.c   2009-02-03 05:51:14 UTC (rev 8179)
@@ -1127,18 +1127,23 @@
 sigalrmHandler (int sig)
 {
 }
+#endif
 
 /**
  * Initialize the signal handler for SIGALRM.
  */
 void __attribute__ ((constructor)) MHD_pthread_handlers_ltdl_init ()
 {
+#ifndef WINDOWS
   /* make sure SIGALRM does not kill us */
   memset (&sig, 0, sizeof (struct sigaction));
   memset (&old, 0, sizeof (struct sigaction));
   sig.sa_flags = SA_NODEFER;
   sig.sa_handler = &sigalrmHandler;
   sigaction (SIGALRM, &sig, &old);
+#else
+  plibc_init ("CRISP", "libmicrohttpd");
+#endif
 #if HTTPS_SUPPORT
   if (0 != pthread_mutex_init(&MHD_gnutls_init_mutex, NULL))
     abort();
@@ -1151,19 +1156,11 @@
   if (0 != pthread_mutex_destroy(&MHD_gnutls_init_mutex))
     abort ();
 #endif
+#ifndef WINDOWS
   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 */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]