comparison src/os/linux/vm/os_linux.cpp @ 23004:9a23a160ca57

8077674: BSD build failures due to undefined macros Reviewed-by: dsamersoff, kbarrett, hseigel
author dholmes
date Mon, 04 May 2015 23:23:37 -0400
parents 915ca3e9d15e
children bbceafdc7a5f
comparison
equal deleted inserted replaced
23003:0f0188a02ecb 23004:9a23a160ca57
207 } 207 }
208 208
209 209
210 #ifndef SYS_gettid 210 #ifndef SYS_gettid
211 // i386: 224, ia64: 1105, amd64: 186, sparc 143 211 // i386: 224, ia64: 1105, amd64: 186, sparc 143
212 #ifdef __ia64__ 212 #ifdef __ia64__
213 #define SYS_gettid 1105 213 #define SYS_gettid 1105
214 #elif __i386__ 214 #else
215 #define SYS_gettid 224 215 #ifdef __i386__
216 #elif __amd64__ 216 #define SYS_gettid 224
217 #define SYS_gettid 186 217 #else
218 #elif __sparc__ 218 #ifdef __amd64__
219 #define SYS_gettid 143 219 #define SYS_gettid 186
220 #else 220 #else
221 #error define gettid for the arch 221 #ifdef __sparc__
222 #endif 222 #define SYS_gettid 143
223 #else
224 #error define gettid for the arch
225 #endif
226 #endif
227 #endif
228 #endif
223 #endif 229 #endif
224 230
225 // Cpu architecture string 231 // Cpu architecture string
226 static char cpu_arch[] = HOTSPOT_LIB_ARCH; 232 static char cpu_arch[] = HOTSPOT_LIB_ARCH;
227 233