diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-22 16:34:12 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-22 16:34:12 +0000 |
commit | 28b467d52098ad84750220585c0c01a2ff207153 (patch) | |
tree | 79c2eed0e0f83c93cb1e87d1e59c12e450e87d03 /libiberty/choose-temp.c | |
parent | 6a67b530c121da434777c0cc2faacce64acac2fe (diff) | |
download | gcc-28b467d52098ad84750220585c0c01a2ff207153.tar.gz |
2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
* choose-temp.c: Include unistd.h for mingw targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152029 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r-- | libiberty/choose-temp.c | 4 |
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 |