File tree 7 files changed +9
-83
lines changed
tests/palsuite/composite/synchronization/nativecs_interlocked
7 files changed +9
-83
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ elseif(CLR_CMAKE_HOST_SUNOS)
195
195
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector" )
196
196
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector" )
197
197
add_definitions (-D__EXTENSIONS__)
198
+ elseif (CLR_CMAKE_HOST_OSX)
199
+ add_definitions (-D_XOPEN_SOURCE)
198
200
endif ()
199
201
200
202
#------------------------------------
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ endif (CLR_CMAKE_TARGET_ARCH_ARM64)
22
22
23
23
if (CLR_CMAKE_TARGET_UNIX)
24
24
25
- if (CLR_CMAKE_TARGET_OSX)
26
- add_definitions (-D_XOPEN_SOURCE)
27
- endif (CLR_CMAKE_TARGET_OSX)
28
-
29
25
if (CLR_CMAKE_TARGET_ARCH_AMD64)
30
26
add_compile_definitions ($<$<NOT :$<BOOL :$<TARGET_PROPERTY:IGNORE_DEFAULT_TARGET_ARCH>>>:UNIX_AMD64_ABI>)
31
27
add_compile_definitions ($<$<NOT :$<BOOL :$<TARGET_PROPERTY:IGNORE_DEFAULT_TARGET_ARCH>>>:FEATURE_MULTIREG_RETURN>)
Original file line number Diff line number Diff line change @@ -240,10 +240,7 @@ if(CLR_CMAKE_TARGET_OSX)
240
240
${LIBUNWIND_DAC_OBJECTS}
241
241
)
242
242
243
- target_compile_definitions (coreclrpal_dac PUBLIC
244
- "-D_XOPEN_SOURCE"
245
- "-DUNW_REMOTE_ONLY"
246
- )
243
+ target_compile_definitions (coreclrpal_dac PUBLIC -DUNW_REMOTE_ONLY)
247
244
else ()
248
245
if (NOT FEATURE_CROSSBITNESS)
249
246
add_library (coreclrpal_dac STATIC
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ if(CLR_CMAKE_TARGET_FREEBSD)
13
13
elseif (CLR_CMAKE_TARGET_SUNOS)
14
14
set (CMAKE_REQUIRED_INCLUDES /opt/local/include )
15
15
endif ()
16
- if (NOT CLR_CMAKE_TARGET_OSX AND NOT CLR_CMAKE_TARGET_FREEBSD AND NOT CLR_CMAKE_TARGET_NETBSD)
16
+
17
+ if (CLR_CMAKE_TARGET_OSX)
18
+ set (CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE)
19
+ elseif (NOT CLR_CMAKE_TARGET_FREEBSD AND NOT CLR_CMAKE_TARGET_NETBSD)
17
20
set (CMAKE_REQUIRED_DEFINITIONS "-D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L" )
18
21
endif ()
19
22
@@ -156,7 +159,7 @@ check_type_size("struct pt_regs" PT_REGS)
156
159
set (CMAKE_EXTRA_INCLUDE_FILES)
157
160
set (CMAKE_EXTRA_INCLUDE_FILES signal.h)
158
161
set (CMAKE_EXTRA_INCLUDE_FILES)
159
- set (CMAKE_EXTRA_INCLUDE_FILES sys/ ucontext.h)
162
+ set (CMAKE_EXTRA_INCLUDE_FILES ucontext.h)
160
163
check_type_size(ucontext_t UCONTEXT_T)
161
164
set (CMAKE_EXTRA_INCLUDE_FILES)
162
165
set (CMAKE_EXTRA_INCLUDE_FILES pthread.h)
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ extern "C"
31
31
/* A type to wrap the native context type, which is ucontext_t on some
32
32
* platforms and another type elsewhere. */
33
33
#if HAVE_UCONTEXT_T
34
- #include < sys/ ucontext.h>
34
+ #include < ucontext.h>
35
35
36
36
typedef ucontext_t native_context_t ;
37
37
#else // HAVE_UCONTEXT_T
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ if(CLR_CMAKE_HOST_UNIX)
71
71
endif ()
72
72
73
73
if (CLR_CMAKE_HOST_OSX)
74
- add_definitions (-D_XOPEN_SOURCE)
75
74
add_definitions (-DUNW_REMOTE_ONLY)
76
- add_definitions (-D__APPLE__)
77
75
add_compile_options (-Wno-sometimes-uninitialized)
78
76
add_compile_options (-Wno-implicit-function-declaration)
79
77
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments