equal
deleted
inserted
replaced
|
1 # Stefan Teleman <[email protected]> |
|
2 # Port of CilkPlus (libcilkrts) to SPARC and Solaris. |
|
3 # Internal patch. SPARC specific: |
|
4 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68945 |
|
5 --- libcilkrts/runtime/sysdep-unix.c 2013-10-30 15:51:29.000000000 -0700 |
|
6 +++ libcilkrts/runtime/sysdep-unix.c 2015-08-05 11:51:37.086142492 -0700 |
|
7 @@ -81,6 +81,10 @@ |
|
8 #include <pthread.h> |
|
9 #include <unistd.h> |
|
10 |
|
11 +#if defined(sun) || defined(__sun) || defined(__sun__) |
|
12 +#include <strings.h> |
|
13 +#endif |
|
14 + |
|
15 #if defined HAVE_ALLOCA_H |
|
16 # include <alloca.h> |
|
17 #elif defined __GNUC__ |
|
18 @@ -110,6 +114,14 @@ |
|
19 # define MAP_ANONYMOUS MAP_ANON |
|
20 #endif |
|
21 |
|
22 +#if defined(sun) || defined(__sun) || defined(__sun__) |
|
23 +#include <sys/resource.h> |
|
24 +#include <dlfcn.h> |
|
25 +#ifndef MAP_ANONYMOUS |
|
26 +#define MAP_ANONYMOUS MAP_ANON |
|
27 +#endif |
|
28 +#endif |
|
29 + |
|
30 #ifdef __VXWORKS__ |
|
31 # include <vxWorks.h> |
|
32 # include <vxCpuLib.h> |