On Thu, Feb 24, 2011 at 8:49 PM, <stpere@xxxxxxxxx> wrote: > Author: stpere > Date: 2011-02-25 02:49:26 +0100 (Fri, 25 Feb 2011) > New Revision: 40676 > Changeset: http://dev.haiku-os.org/changeset/40676 > > Modified: > haiku/trunk/src/system/libroot/os/thread.c > Log: > Fix build on gcc2. > (Note, I honestly have no idea what was initially wrong with the code; > everything seamt right to me..) > > > Modified: haiku/trunk/src/system/libroot/os/thread.c > =================================================================== > --- haiku/trunk/src/system/libroot/os/thread.c 2011-02-24 23:22:31 UTC > (rev 40675) > +++ haiku/trunk/src/system/libroot/os/thread.c 2011-02-25 01:49:26 UTC > (rev 40676) > @@ -83,6 +83,7 @@ > { > struct thread_creation_attributes attributes; > pthread_thread* thread; > + thread_id id; > > thread = __allocate_pthread(data); > if (thread == NULL) > @@ -99,7 +100,7 @@ > attributes.stack_address = NULL; > attributes.stack_size = 0; > > - thread_id id = _kern_spawn_thread(&attributes); > + id = _kern_spawn_thread(&attributes); > if (id < 0) > free(thread); > else > > > Of course, you'll understand that I meant seemed :)