Date: Tue, 4 Nov 2003 23:24:23 -0500 From: Craig Rodrigues <rodrigc@crodrigues.org> To: freebsd-threads@freebsd.org Subject: Why -D_THREAD_SAFE? Message-ID: <20031105042423.GA1527@crodrigues.org>
index | next in thread | raw e-mail
Hi,
In /usr/ports/Mk/bsd.port.mk there is this:
.if ${OSVERSION} < 500016
PTHREAD_CFLAGS= -D_THREAD_SAFE
PTHREAD_LIBS= -pthread
.else
PTHREAD_CFLAGS= -D_THREAD_SAFE
PTHREAD_LIBS= -lc_r
.endif
I understand that -pthread has been deprecated
in gcc in -CURRENT. Why is -D_THREAD_SAFE
needed?
I can't find it in any header files under /usr/include .
I am using -CURRENT.
--
Craig Rodrigues
http://crodrigues.org
rodrigc@crodrigues.org
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031105042423.GA1527>
