From 649248c9098e9fe13486c55180335c31dfb8fac6 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sun, 7 Nov 2010 08:58:29 +0000 Subject: [PATCH] * Reverted to the most portable version. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1188 e378c898-3ddf-0310-93e7-cc216c733640 --- src/signal_handler.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/signal_handler.h b/src/signal_handler.h index 60e44b22..5c0f4a1c 100644 --- a/src/signal_handler.h +++ b/src/signal_handler.h @@ -44,11 +44,11 @@ class SignalHandler { public: typedef sigc::slot0 Slot; -#ifdef SIGRTMAX - static const unsigned int HIGHEST_SIGNAL = SIGRTMAX; -#else +#ifdef NSIG + static const unsigned int HIGHEST_SIGNAL = NSIG; +#else // Let's be on the safe side. - static const unsigned int HIGHEST_SIGNAL = 64; + static const unsigned int HIGHEST_SIGNAL = 32; #endif static void set_default(unsigned int signum);