diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-09-22 16:33:56 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2009-09-22 16:33:56 +0000 |
commit | 074d710de74bfa99c9fb9ac2c3013508149d16e5 (patch) | |
tree | 1964ef0c749a1f63e1f7974fdc1e308cd8ff41d0 /libiberty/choose-temp.c | |
parent | 93cfa9cf1ffc3ee0e0b81956c40182fc826aa35d (diff) | |
download | gdb-074d710de74bfa99c9fb9ac2c3013508149d16e5.zip gdb-074d710de74bfa99c9fb9ac2c3013508149d16e5.tar.gz gdb-074d710de74bfa99c9fb9ac2c3013508149d16e5.tar.bz2 |
2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
* choose-temp.c: Include unistd.h for mingw targets.
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 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 |