[PATCH GOLD] [2/N mingw host] Fix pread.c

Andrew Pinski Andrew_Pinski@playstation.sony.com
Wed Oct 7 00:16:00 GMT 2009


Hi,
  Under mingw, SEEK_SET is not defined in unistd.h but instead
stdio.h.  This currently causes pread.c to fail to build.

OK? Built and tested on i686-linux-gnu.

Thanks,
Andrew Pinski

ChangeLog:
* pread.c: Include stdio.h.
-------------- next part --------------
Index: gold/pread.c
===================================================================
RCS file: /cvs/src/src/gold/pread.c,v
retrieving revision 1.2
diff -u -p -r1.2 pread.c
--- gold/pread.c	28 Mar 2009 05:22:30 -0000	1.2
+++ gold/pread.c	7 Oct 2009 00:14:55 -0000
@@ -29,6 +29,7 @@
 
 #include <sys/types.h>
 #include <unistd.h>
+#include <stdio.h>
 
 extern ssize_t pread (int, void *, size_t, off_t);
 


More information about the Binutils mailing list