harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r594222 - in /harmony/enhanced/drlvm/trunk/vm: thread/src/linux/os_thread.c vmcore/src/util/linux/crash_handler.cpp
Date Mon, 12 Nov 2007 17:24:20 GMT
Author: gshimansky
Date: Mon Nov 12 09:24:19 2007
New Revision: 594222

URL: http://svn.apache.org/viewvc?rev=594222&view=rev
Log:
Fixed definition of gettid for versions of Linux that don't define _syscall0


Modified:
    harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c?rev=594222&r1=594221&r2=594222&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/thread/src/linux/os_thread.c Mon Nov 12 09:24:19 2007
@@ -31,7 +31,7 @@
 _syscall0(pid_t,gettid)
 pid_t gettid(void);
 #else
-pid_t gettid(void)
+static pid_t gettid(void)
 {
     return (pid_t)syscall(__NR_gettid);
 }

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp?rev=594222&r1=594221&r2=594222&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp Mon Nov 12 09:24:19
2007
@@ -56,8 +56,15 @@
     return get_boolean_property("vm.crash_handler", FALSE, VM_PROPERTIES);
 }
 
+#ifdef _syscall0
 _syscall0(pid_t, gettid)
 pid_t gettid(void);
+#else
+static pid_t gettid(void)
+{
+    return (pid_t)syscall(__NR_gettid);
+}
+#endif
 
 bool gdb_crash_handler()
 {



Mime
View raw message