diff options
Diffstat (limited to 'libiberty/setproctitle.c')
-rw-r--r-- | libiberty/setproctitle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/setproctitle.c b/libiberty/setproctitle.c index 734af2e..ceb0a38 100644 --- a/libiberty/setproctitle.c +++ b/libiberty/setproctitle.c @@ -20,7 +20,7 @@ Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#ifdef HAVE_PRCTL_SET_NAME +#ifdef HAVE_SYS_PRCTL_H #include <sys/prctl.h> #endif #include "ansidecl.h" @@ -39,7 +39,7 @@ but defined for compatibility with BSD. void setproctitle (const char *name ATTRIBUTE_UNUSED, ...) { -#ifdef HAVE_PRCTL_SET_NAME +#ifdef PR_SET_NAME /* On Linux this sets the top visible "comm", but not necessarily the name visible in ps. */ prctl (PR_SET_NAME, name); |