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"