1.1 --- a/src/os/linux/vm/os_linux.cpp Mon May 04 16:53:05 2015 +0000 1.2 +++ b/src/os/linux/vm/os_linux.cpp Mon May 04 23:23:37 2015 -0400 1.3 @@ -209,17 +209,23 @@ 1.4 1.5 #ifndef SYS_gettid 1.6 // i386: 224, ia64: 1105, amd64: 186, sparc 143 1.7 -#ifdef __ia64__ 1.8 -#define SYS_gettid 1105 1.9 -#elif __i386__ 1.10 -#define SYS_gettid 224 1.11 -#elif __amd64__ 1.12 -#define SYS_gettid 186 1.13 -#elif __sparc__ 1.14 -#define SYS_gettid 143 1.15 -#else 1.16 -#error define gettid for the arch 1.17 -#endif 1.18 + #ifdef __ia64__ 1.19 + #define SYS_gettid 1105 1.20 + #else 1.21 + #ifdef __i386__ 1.22 + #define SYS_gettid 224 1.23 + #else 1.24 + #ifdef __amd64__ 1.25 + #define SYS_gettid 186 1.26 + #else 1.27 + #ifdef __sparc__ 1.28 + #define SYS_gettid 143 1.29 + #else 1.30 + #error define gettid for the arch 1.31 + #endif 1.32 + #endif 1.33 + #endif 1.34 + #endif 1.35 #endif 1.36 1.37 // Cpu architecture string