[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#832148: fix SIGPWR warning on kfreebsd



Package: procps
Version: 2:3.3.10-4
Tags: patch

Hi

This patch fixes SIGPWR warning on kfreebsd (and avoids hardcoding 29 for a signal we don't have ;-))

-- 
Jon Boden

ubuntuBSD -- The power of FreeBSD kernel with familiarity of Ubuntu OS!

http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
Index: procps-3.3.10/proc/sig.c
===================================================================
--- procps-3.3.10.orig/proc/sig.c
+++ procps-3.3.10/proc/sig.c
@@ -56,7 +56,7 @@
 #endif
 
 /* It seems the SPARC libc does not know the kernel supports SIGPWR. */
-#ifndef SIGPWR
+#if defined(__linux__) && !defined(SIGPWR)
 #  warning Your header files lack SIGPWR. (assuming it is number 29)
 #  define SIGPWR 29
 #endif
@@ -84,7 +84,9 @@ static const mapstruct sigtable[] = {
   {"PIPE",   SIGPIPE},
   {"POLL",   SIGPOLL},  /* IO */
   {"PROF",   SIGPROF},
+#ifdef SIGPWR
   {"PWR",    SIGPWR},
+#endif
   {"QUIT",   SIGQUIT},
   {"SEGV",   SIGSEGV},
 #ifdef SIGSTKFLT

Reply to: