From: Kai Tietz Date: Tue, 22 Sep 2009 16:33:56 +0000 (+0000) Subject: 2009-09-22 Ozkan Sezer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=074d710de74bfa99c9fb9ac2c3013508149d16e5;p=binutils-gdb.git 2009-09-22 Ozkan Sezer * choose-temp.c: Include unistd.h for mingw targets. --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c86cbc6075a..afa8c6b3bd9 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2009-09-22 Ozkan Sezer + + * choose-temp.c: Include unistd.h for mingw targets. + 2009-09-16 Rainer Orth * hashtab.c [HAVE_INTTYPES_H]: Include . 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 /* May get P_tmpdir. */ +#include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef HAVE_STDLIB_H #include #endif