diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2015-12-01 00:15:49 +0000 |
---|---|---|
committer | Ray Donnelly <mingw.android@gmail.com> | 2016-01-03 15:52:52 +0000 |
commit | 9b4b569741f820b4b8ff725dc37f0323dbe0ead8 (patch) | |
tree | d3e6c83acab848e20339f5f26c23b2ee6cee3dc5 /patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch | |
parent | 29f03e3295f506e65fa5d064ae33164413f4bb1b (diff) | |
download | crosstool-ng-9b4b569741f820b4b8ff725dc37f0323dbe0ead8.tar.gz crosstool-ng-9b4b569741f820b4b8ff725dc37f0323dbe0ead8.tar.bz2 crosstool-ng-9b4b569741f820b4b8ff725dc37f0323dbe0ead8.zip |
POSIX: Fix GCC 5+ plugin build failure on Cygwin
Cygwin follows POSIX IEEE Std 1003.1, 2004 Edition spec
for the select() fuction as described at:
http://pubs.opengroup.org/onlinepubs/009695399/functions/pselect.html
.. so we must #include <sys/select.h> for the declaration.
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Diffstat (limited to 'patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch')
-rw-r--r-- | patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch b/patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch new file mode 100644 index 00000000..12ef48ee --- /dev/null +++ b/patches/gcc/5.3.0/380-gcc-plugin-POSIX-include-sys-select-h.patch @@ -0,0 +1,11 @@ +diff -urN gcc-5.3.0.orig/libcc1/connection.cc gcc-5.3.0/libcc1/connection.cc +--- gcc-5.3.0.orig/libcc1/connection.cc 2015-12-19 14:40:20.860479600 +0000 ++++ gcc-5.3.0/libcc1/connection.cc 2015-12-20 01:31:04.346611500 +0000 +@@ -21,6 +21,7 @@ + #include <string> + #include <unistd.h> + #include <sys/types.h> ++#include <sys/select.h> + #include <string.h> + #include <errno.h> + #include "marshall.hh" |