I get a compilation failure in coreutils with the priv-set module which correctly detects a getppriv() function, but then tries to use it by including a non-existant <priv.h> header.
From priv-set.h: #if HAVE_GETPPRIV # include <priv.h> From the aix manual page for getppriv: Purpose Gets a privilege set associated with a process. Library Security Library (libc.a) Syntax #include <sys/types.h> #include <sys/priv.h> int getppriv(pid, which, privset, privsize) pid_t pid; int which; privg_t *privset; int privset; I guess the solution is to add checks for <priv.h>, <sys/priv.h> headers and change priv-set.h to read as follows (or similar): #if HAVE_GETPPRIV # if HAVE_PRIV_H # include <priv.h> # else # if HAVE_SYS_TYPES_H # include <sys/types.h> # endif # if HAVE_SYS_PRIV_H # include <sys/priv.h> # endif # endif ... Cheers, -- Gary V. Vaughan (g...@gnu.org)