Revision: 8948
Author:   [email protected]
Date:     Wed Aug 17 01:24:36 2011
Log:      Fix compilation on Linux 2.6.9 and older.
Review URL: http://codereview.chromium.org/7655016
http://code.google.com/p/v8/source/detail?r=8948

Modified:
 /branches/bleeding_edge/src/platform-linux.cc

=======================================
--- /branches/bleeding_edge/src/platform-linux.cc       Thu Jul 21 04:01:50 2011
+++ /branches/bleeding_edge/src/platform-linux.cc       Wed Aug 17 01:24:36 2011
@@ -676,9 +676,11 @@
// This is also initialized by the first argument to pthread_create() but we
   // don't know which thread will run first (the original thread or the new
   // one) so we initialize it here too.
+#ifdef PR_SET_NAME
   prctl(PR_SET_NAME,
         reinterpret_cast<unsigned long>(thread->name()),  // NOLINT
         0, 0, 0);
+#endif
   thread->data()->thread_ = pthread_self();
   ASSERT(thread->data()->thread_ != kNoThread);
   thread->Run();

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to