[cfe-dev] [PATCH] Correct symbol defined for OpenBSD with -pthread flag

Chris Lattner clattner at apple.com
Tue Apr 24 23:13:02 PDT 2012


Applied in r155535, thanks!

On Apr 24, 2012, at 11:25 AM, Brad Smith wrote:

> The attached patch corrects the symbol being defined for OpenBSD when using the
> -pthread flag so as to use _REENTRANT instead of _POSIX_THREADS to match the
> behavior of our system compilers and compilers in the ports tree.
> 
> 
> CVSROOT:    /cvs
> Module name:    src
> Changes by:    kurt at cvs.openbsd.org    2012/04/12 06:09:30
> 
> Modified files:
>    lib/libpthread/include: pthread.h
>    gnu/egcs/gcc/config: openbsd.h
>    gnu/egcs/gcc/config/m68k: openbsd.h
>    gnu/egcs/gcc/config/m88k: openbsd.h
>    gnu/gcc/gcc/config: openbsd.h
>    gnu/gcc/gcc/config/m68k: openbsd.h
>    gnu/gcc/gcc/config/rs6000: sysv4.h
>    gnu/usr.bin/gcc/gcc/config: openbsd.h
>    gnu/usr.bin/gcc/gcc/config/m68k: openbsd.h
>    gnu/usr.bin/gcc/gcc/config/m88k: openbsd.h
>    gnu/usr.sbin/sendmail/cf/cf: Makefile
> 
> Log message:
> Remove incorrect -pthread preprocessor define _POSIX_THREADS and replace
> with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
> From brad at comstyle.com. okay guenther@
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> <clang_pthread.diff>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list