changeset 2230:6d4ac428ab51

* src/pthread.cxx (pthread_create): name is only defined if CYGVAR_KERNEL_THREADS_NAME is set to 1
author jlarmour
date Mon, 12 Jun 2006 15:43:16 +0000
parents b86c8bd4a1a3
children e11e2c73b1b2
files packages/compat/posix/current/ChangeLog packages/compat/posix/current/src/pthread.cxx
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/compat/posix/current/ChangeLog
+++ b/packages/compat/posix/current/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-12  Klaas Gadeyne  <klaas.gadeyne@fmtc.be>
+
+	* src/pthread.cxx (pthread_create): name is only defined if
+	CYGVAR_KERNEL_THREADS_NAME is set to 1
+
 2005-10-23  Andrew Lunn  <andrew.lunn@ascom.ch>
 2005-10-18  Alexander Neundorf <neundorf@kde.org>
 
--- a/packages/compat/posix/current/src/pthread.cxx
+++ b/packages/compat/posix/current/src/pthread.cxx
@@ -636,7 +636,11 @@ externC int pthread_create ( pthread_t *
         Cyg_Thread ( PTHREAD_ECOS_PRIORITY(use_attr.schedparam.sched_priority),
                      pthread_entry,
                      (CYG_ADDRWORD)nthread,
+#ifdef CYGVAR_KERNEL_THREADS_NAME
                      name,
+#else
+		     NULL,
+#endif
                      stackbase,
                      stacksize);