Added SILC_UNIX define for unix systems.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 20 Mar 2002 07:54:38 +0000 (07:54 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 20 Mar 2002 07:54:38 +0000 (07:54 +0000)
includes/silcincludes.h
lib/silcutil/silcschedule.c

index 267d60fa38ec1e86d88a437e0c8528ee957a9d15..cf63d7bab2b3234bad283d2b995972cb7955b9f1 100644 (file)
 extern "C" {
 #endif
 
+#define SILC_UNIX
+
 #ifdef WIN32
 #ifndef SILC_WIN32
 #define SILC_WIN32
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(__EPOC32__)
 #ifndef SILC_EPOC
 #define SILC_EPOC
+#undef SILC_UNIX
 #endif
 #endif
 
 #ifdef BEOS
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #elif defined(__BEOS__)
 #ifndef SILC_BEOS
 #define SILC_BEOS
+#undef SILC_UNIX
 #endif
 #endif
 
 #if defined(OS2)
 #ifndef SILC_OS2
 #define SILC_OS2
+#undef SILC_UNIX
 #endif
 #endif
 
index 240ddeb28e3e208f8e56405e9edf1bd9d8932bdd..cb4a9693c5f23d829b6fc72a07fba25905a90dde 100644 (file)
@@ -238,7 +238,9 @@ SilcSchedule silc_schedule_init(int max_tasks)
 
   /* Initialize the platform specific scheduler. */
   schedule->internal = silc_schedule_internal_init(schedule);
+#ifdef SILC_UNIX
   silc_schedule_signal_register(schedule, SIGALRM);
+#endif
 
   return schedule;
 }