From: Pekka Riikonen Date: Wed, 20 Mar 2002 07:54:38 +0000 (+0000) Subject: Added SILC_UNIX define for unix systems. X-Git-Tag: silc.client.0.8.2~5 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=a2e242bd81d3cf90145036fcb96b3fd002801961 Added SILC_UNIX define for unix systems. --- diff --git a/includes/silcincludes.h b/includes/silcincludes.h index 267d60fa..cf63d7ba 100644 --- a/includes/silcincludes.h +++ b/includes/silcincludes.h @@ -29,31 +29,38 @@ 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 diff --git a/lib/silcutil/silcschedule.c b/lib/silcutil/silcschedule.c index 240ddeb2..cb4a9693 100644 --- a/lib/silcutil/silcschedule.c +++ b/lib/silcutil/silcschedule.c @@ -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; }