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>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031105042423.GA1527>