library: Don't use SIGPWR on FreeBSD

FreeBSD doesn't have SIGPWR so makes no sense in warning and assuming
its 29.

References:
 https://bugs.debian/org/832148

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Jon Boden 2016-08-28 19:14:32 +10:00 committed by Craig Small
parent 5313852596
commit 8abd0c92ab
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -2,6 +2,7 @@ procps-ng-NEXT
---------------- ----------------
* watch: define HOST_NAME_MAX where not defined Debian #830734 * watch: define HOST_NAME_MAX where not defined Debian #830734
* library: dont use vm_min_free on non Linux Debian #831396 * library: dont use vm_min_free on non Linux Debian #831396
* library: dont use SIGPWR on FreeBSD Debian #832148
procps-ng-3.3.12 procps-ng-3.3.12
---------------- ----------------

View File

@ -56,7 +56,7 @@
#endif #endif
/* It seems the SPARC libc does not know the kernel supports SIGPWR. */ /* 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) # warning Your header files lack SIGPWR. (assuming it is number 29)
# define SIGPWR 29 # define SIGPWR 29
#endif #endif
@ -84,7 +84,9 @@ static const mapstruct sigtable[] = {
{"PIPE", SIGPIPE}, {"PIPE", SIGPIPE},
{"POLL", SIGPOLL}, /* IO */ {"POLL", SIGPOLL}, /* IO */
{"PROF", SIGPROF}, {"PROF", SIGPROF},
#ifdef SIGPWR
{"PWR", SIGPWR}, {"PWR", SIGPWR},
#endif
{"QUIT", SIGQUIT}, {"QUIT", SIGQUIT},
{"SEGV", SIGSEGV}, {"SEGV", SIGSEGV},
#ifdef SIGSTKFLT #ifdef SIGSTKFLT