diff options
author | Ozkan Sezer <sezeroz@gmail.com> | 2009-09-22 16:34:12 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2009-09-22 18:34:12 +0200 |
commit | bcf11ab47fffbb787dcf7140f7e30e92f7751d7a (patch) | |
tree | 79c2eed0e0f83c93cb1e87d1e59c12e450e87d03 /libiberty | |
parent | 27ed7478c010c7afaa79d06dcda74048711bc890 (diff) | |
download | gcc-bcf11ab47fffbb787dcf7140f7e30e92f7751d7a.zip gcc-bcf11ab47fffbb787dcf7140f7e30e92f7751d7a.tar.gz gcc-bcf11ab47fffbb787dcf7140f7e30e92f7751d7a.tar.bz2 |
choose-temp.c: Include unistd.h for mingw targets.
2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
* choose-temp.c: Include unistd.h for mingw targets.
From-SVN: r152029
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/choose-temp.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c86cbc6..afa8c6b 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2009-09-22 Ozkan Sezer <sezeroz@gmail.com> + + * choose-temp.c: Include unistd.h for mingw targets. + 2009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>. diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c index b1c2e5b..0a454cf 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 |