aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2010-11-29 10:18:05 +0000
committerRainer Orth <ro@gcc.gnu.org>2010-11-29 10:18:05 +0000
commit4c7d97e641a7e66f8a9953c15ad4e582d89d1695 (patch)
tree80af2f845e61139e2fa9e44c74223de49d27209b /libiberty
parentf87c158e93d04c45caab9edaf6527e5a09fb7399 (diff)
downloadgcc-4c7d97e641a7e66f8a9953c15ad4e582d89d1695.zip
gcc-4c7d97e641a7e66f8a9953c15ad4e582d89d1695.tar.gz
gcc-4c7d97e641a7e66f8a9953c15ad4e582d89d1695.tar.bz2
* setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
From-SVN: r167236
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/setproctitle.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 37d9786..bbd5aaf 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
+
2010-11-20 Anthony Green <green@moxielogic.com>
* configure.ac: Turn PR_SET_NAME link test into a test for
diff --git a/libiberty/setproctitle.c b/libiberty/setproctitle.c
index ceb0a38..a22fb1f 100644
--- a/libiberty/setproctitle.c
+++ b/libiberty/setproctitle.c
@@ -21,6 +21,7 @@ Boston, MA 02110-1301, USA. */
#include "config.h"
#endif
#ifdef HAVE_SYS_PRCTL_H
+#include <sys/types.h>
#include <sys/prctl.h>
#endif
#include "ansidecl.h"