summaryrefslogtreecommitdiff
path: root/libiberty/setproctitle.c
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2010-11-21 03:29:27 +0000
committerAnthony Green <green@gcc.gnu.org>2010-11-21 03:29:27 +0000
commit52ae149de0588e84b71b4fcc3ec35a7af1644d3f (patch)
tree7625e9f4f605273dbfaade38b25a5e50f37d323f /libiberty/setproctitle.c
parent4de7c19456b4ca18e9054c746b145dc6094fa0e3 (diff)
Fix build regression
From-SVN: r166996
Diffstat (limited to 'libiberty/setproctitle.c')
-rw-r--r--libiberty/setproctitle.c4
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);