2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
authorKai Tietz <kai.tietz@onevision.com>
Tue, 22 Sep 2009 16:33:56 +0000 (16:33 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Tue, 22 Sep 2009 16:33:56 +0000 (16:33 +0000)
        * choose-temp.c: Include unistd.h for mingw targets.

libiberty/ChangeLog
libiberty/choose-temp.c

index c86cbc6075a076376b9ccdede49650f2215d0854..afa8c6b3bd90eb3ba494e0f195f26a1b7f99d806 100644 (file)
@@ -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>.
index b1c2e5b66ba5f76af7816a7ef929c0480c942ba8..0a454cfa7ca1c8eb0cfcc3da4eb2a15bb2977303 100644 (file)
@@ -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