summaryrefslogtreecommitdiff
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-10-08 08:50:51 +0000
committerJim Meyering <meyering@redhat.com>2009-10-08 08:58:19 +0000
commit79b5a82e464c9ec7731ed6f80580ceb13f745168 (patch)
treee258911599426e00b8bc17b4e491a583c9d88027 /libiberty/choose-temp.c
parentf699d949b3eb15dfba4284d326934d5163fc444b (diff)
downloadgdb-79b5a82e464c9ec7731ed6f80580ceb13f745168.tar.gz
manually sync from the CVS repository
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index b1c2e5b66ba..0a454cfa7ca 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -22,6 +22,10 @@ Boston, MA 02110-1301, USA. */
#endif
#include <stdio.h> /* May get P_tmpdir. */
+#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif