# HG changeset patch # User jlarmour # Date 1150126996 0 # Node ID 6d4ac428ab516d11b29dc1124c40116b8f79a893 # Parent b86c8bd4a1a3d914ce225d282a8b4cc728a2de6a * src/pthread.cxx (pthread_create): name is only defined if CYGVAR_KERNEL_THREADS_NAME is set to 1 diff --git a/packages/compat/posix/current/ChangeLog b/packages/compat/posix/current/ChangeLog --- a/packages/compat/posix/current/ChangeLog +++ b/packages/compat/posix/current/ChangeLog @@ -1,3 +1,8 @@ +2006-06-12 Klaas Gadeyne + + * src/pthread.cxx (pthread_create): name is only defined if + CYGVAR_KERNEL_THREADS_NAME is set to 1 + 2005-10-23 Andrew Lunn 2005-10-18 Alexander Neundorf diff --git a/packages/compat/posix/current/src/pthread.cxx b/packages/compat/posix/current/src/pthread.cxx --- 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);