From 074d710de74bfa99c9fb9ac2c3013508149d16e5 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 22 Sep 2009 16:33:56 +0000 Subject: [PATCH] 2009-09-22 Ozkan Sezer * choose-temp.c: Include unistd.h for mingw targets. --- libiberty/ChangeLog | 4 ++++ libiberty/choose-temp.c | 4 ++++ 2 files changed, 8 insertions(+) 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 -- 2.30.2