summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-09-21 08:29:42 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-09-21 08:29:42 +0300
commitdcfa88229f11888322f80fea010374aac40bf548 (patch)
tree0c38d5a29462348f9d8b20292347bbb496f6af67
parent46894f6323b5336caf1d8bff8b82f5cb71789592 (diff)
downloadgcc-5-dcfa88229f11888322f80fea010374aac40bf548.tar.gz
Added debian/patches/illumos-sysdep-unix.c.diff
-rw-r--r--debian/patches/illumos-sysdep-unix.c.diff16
-rw-r--r--debian/rules.patch1
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/illumos-sysdep-unix.c.diff b/debian/patches/illumos-sysdep-unix.c.diff
new file mode 100644
index 0000000..53506c9
--- /dev/null
+++ b/debian/patches/illumos-sysdep-unix.c.diff
@@ -0,0 +1,16 @@
+Index: gcc-5/src/libcilkrts/runtime/sysdep-unix.c
+===================================================================
+--- gcc-5.orig/src/libcilkrts/runtime/sysdep-unix.c
++++ gcc-5/src/libcilkrts/runtime/sysdep-unix.c
+@@ -46,6 +46,11 @@
+ # define _GNU_SOURCE
+ #endif
+
++#ifdef __sun__
++# define _GNU_SOURCE
++# define __EXTENSIONS__
++#endif
++
+ #include "sysdep.h"
+ #include "os.h"
+ #include "bug.h"
diff --git a/debian/rules.patch b/debian/rules.patch
index 0053131..50f6fa2 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -341,6 +341,7 @@ ifeq ($(DEB_TARGET_ARCH_OS), illumos)
debian_patches += illumos-strict-calling-conventions
debian_patches += illumos-boehm-gc
debian_patches += illumos-libgcc-regs
+ debian_patches += illumos-sysdep-unix.c
endif
# don't remove, this is regularly overwritten, see PR sanitizer/63958.