diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 03:29:27 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-21 03:29:27 +0000 |
commit | d0820ac07ec119ce87dd0b6d7eea62612c6355eb (patch) | |
tree | 7625e9f4f605273dbfaade38b25a5e50f37d323f /libiberty/setproctitle.c | |
parent | 23a44cd6b52e8d9476559605340b77c8eb0a6f0f (diff) | |
download | gcc-d0820ac07ec119ce87dd0b6d7eea62612c6355eb.tar.gz |
Fix build regression
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166996 138bc75d-0d04-0410-961f-82ee72b054a4
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 734af2eca6e..ceb0a3894cc 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); |