From f794be7369ce393cd84c42035c89807fc49f9c9b Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 8 Oct 2013 02:06:04 +0000 Subject: Don't refer to SIGWINCH, SIGIO if they don't exist git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2010 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libsystem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/libsystem.c') diff --git a/lib/libsystem.c b/lib/libsystem.c index b8c3ea50..d6c69c2b 100644 --- a/lib/libsystem.c +++ b/lib/libsystem.c @@ -273,10 +273,20 @@ signalName(unsigned int const signalClass) { return "SIGVTALRM"; case SIGPROF: return "SIGPROF"; +/* Most systems have SIGWINCH and SIGIO, but at least OpenBSD, in 2013, + does not. Systems that do don't necessarily supply it as a macro, so + the following tests are not perfect, but a false negative is a really, + really, small problem, so we don't bother with all the work it would + take to do better. +*/ +#ifdef SIGWINCH case SIGWINCH: return "SIGWINCH"; +#endif +#ifdef HAVE_SIGIO case SIGIO: return "SIGIO"; +#endif case SIGSYS: return "SIGSYS"; default: -- cgit 1.4.1