diff options
Diffstat (limited to 'SOURCES/gcc72-vxworks.patch')
-rw-r--r-- | SOURCES/gcc72-vxworks.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/SOURCES/gcc72-vxworks.patch b/SOURCES/gcc72-vxworks.patch new file mode 100644 index 0000000..07b264e --- /dev/null +++ b/SOURCES/gcc72-vxworks.patch @@ -0,0 +1,43 @@ +diff -ruNb gcc-7.2.0.orig/libgcc/libgcov-driver-system.c gcc-7.2.0/libgcc/libgcov-driver-system.c +--- gcc-7.2.0.orig/libgcc/libgcov-driver-system.c 2017-01-01 13:07:43.905435000 +0100 ++++ gcc-7.2.0/libgcc/libgcov-driver-system.c 2017-11-02 22:49:00.522019661 +0100 +@@ -105,14 +105,12 @@ + *s = '\0'; + + /* Try to make directory if it doesn't already exist. */ +- if (access (filename, F_OK) == -1 +-#ifdef TARGET_POSIX_IO ++ if ( ++#ifdef F_OK ++ access (filename, F_OK) == -1 + && mkdir (filename, 0755) == -1 + #else +-#ifdef mkdir +-#undef mkdir +-#endif +- && mkdir (filename) == -1 ++ mkdir (filename) + #endif + /* The directory might have been made by another process. */ + && errno != EEXIST) +diff -ruNb gcc-7.2.0.orig/libssp/ssp.c gcc-7.2.0/libssp/ssp.c +--- gcc-7.2.0.orig/libssp/ssp.c 2017-04-02 02:35:58.914913000 +0200 ++++ gcc-7.2.0/libssp/ssp.c 2017-11-02 22:49:46.001904097 +0100 +@@ -90,7 +90,7 @@ + CryptReleaseContext(hprovider, 0); + } + #else +- int fd = open ("/dev/urandom", O_RDONLY); ++ int fd = open ("/dev/urandom", O_RDONLY, 0); + if (fd != -1) + { + ssize_t size = read (fd, &__stack_chk_guard, +@@ -121,7 +121,7 @@ + + /* Print error message directly to the tty. This avoids Bad Things + happening if stderr is redirected. */ +- fd = open (_PATH_TTY, O_WRONLY); ++ fd = open (_PATH_TTY, O_WRONLY, 0); + if (fd != -1) + { + static const char msg2[] = " terminated\n"; |