diff options
author | DJ Delorie <dj@redhat.com> | 2010-11-21 04:01:17 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2010-11-21 04:01:17 +0000 |
commit | 62b06a9e17aacab20187632db20a98c4f2fe7f49 (patch) | |
tree | 220ec564222892ee7074eb13e83501465b85ca8d /libiberty/setproctitle.c | |
parent | 9e1a94f4a18ab83359a4cd380f3bbc90c047542a (diff) | |
download | gdb-62b06a9e17aacab20187632db20a98c4f2fe7f49.zip gdb-62b06a9e17aacab20187632db20a98c4f2fe7f49.tar.gz gdb-62b06a9e17aacab20187632db20a98c4f2fe7f49.tar.bz2 |
merge from gcc
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); |