From f90cf56d7caa3b91c80a7fc8c33364636370c4cd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 24 Aug 2014 02:49:17 +0000 Subject: Don't refer to SIGURG on systems that don't have it git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2255 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libsystem.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libsystem.c b/lib/libsystem.c index 48c6f06d..d21d0403 100644 --- a/lib/libsystem.c +++ b/lib/libsystem.c @@ -231,7 +231,9 @@ signalName(unsigned int const signalClass) { it would take to do it right. OpenBSD does not have SIGWINCH and SIGIO in 2013. Everyone else seems - to have it. + to have them. OpenBSD does have them if the code is not declared as + X/open code (i.e. OpenBSD seems to interpret _XOPEN_SOURCE backward - + it removes features rather than adds them). */ switch (signalClass) { case SIGHUP: /* POSIX.1 */ @@ -276,8 +278,11 @@ signalName(unsigned int const signalClass) { return "SIGTTIN"; case SIGTTOU: /* POSIX.1 */ return "SIGTTOU"; +#ifdef SIGURG +/* SCO Openserver 5.0.7/3.2 does not have SIGURG */ case SIGURG: return "SIGURG"; +#endif case SIGXCPU: return "SIGXCPU"; case SIGXFSZ: @@ -291,6 +296,7 @@ signalName(unsigned int const signalClass) { return "SIGWINCH"; #endif #ifdef SIGIO +/* SCO Openserver 5.0.7/3.2 does not have SIGIO */ case SIGIO: return "SIGIO"; #endif -- cgit 1.4.1