summaryrefslogtreecommitdiff
path: root/debian/patches/illumos-sysdep-unix.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/illumos-sysdep-unix.c.diff')
-rw-r--r--debian/patches/illumos-sysdep-unix.c.diff16
1 files changed, 16 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"