gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error while compiling on FreeBSD


From: Richard Frith-Macdonald
Subject: Re: Error while compiling on FreeBSD
Date: Tue, 2 Dec 2014 06:57:02 +0000

On 2 Dec 2014, at 00:47, Riccardo Mottola <address@hidden> wrote:
> 
> Hi,
> 
> I just tried compiling on FreeBSD 10.0 clang:
> 
> Compiling file NSThread.m ...
> NSThread.m:810:14: error: assigning to 'int' from incompatible type 'void'
>      result = PTHREAD_SETNAME(pthread_self(),
>             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> 
> Ideas? It looks it is Johannes' change here.

It seems there are two variants of pthread_setname_np and the autoconf script 
didn't know about them; it was just checking for pthread_setname_np or 
pthread_set_name_np
I have rewritten the tests so it should discriminate between the version which 
takes two arguments and the one that takes three.
I comitted the change to trunk so you can try it out (I don't have the 
different bsd systems to try it on).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]