hotspot/src/os/linux/vm/os_linux.cpp
changeset 30252 b9faf31ff015
parent 30240 a7ba42fa1df6
child 30605 94be2f15efe5
child 30609 211c22831646
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Fri Apr 17 22:50:10 2015 -0400
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Mon Apr 20 21:32:28 2015 -0400
@@ -198,14 +198,20 @@
 // i386: 224, ia64: 1105, amd64: 186, sparc 143
   #ifdef __ia64__
     #define SYS_gettid 1105
-  #elif __i386__
-    #define SYS_gettid 224
-  #elif __amd64__
-    #define SYS_gettid 186
-  #elif __sparc__
-    #define SYS_gettid 143
   #else
-    #error define gettid for the arch
+    #ifdef __i386__
+      #define SYS_gettid 224
+    #else
+      #ifdef __amd64__
+        #define SYS_gettid 186
+      #else
+        #ifdef __sparc__
+          #define SYS_gettid 143
+        #else
+          #error define gettid for the arch
+        #endif
+      #endif
+    #endif
   #endif
 #endif