From owner-freebsd-threads@FreeBSD.ORG Tue Nov 4 20:22:39 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF7AD16A4CE for ; Tue, 4 Nov 2003 20:22:39 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [66.31.45.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0A5343FE0 for ; Tue, 4 Nov 2003 20:22:38 -0800 (PST) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])hA54ONA5002849 for ; Tue, 4 Nov 2003 23:24:24 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)hA54ONAN002848 for freebsd-threads@freebsd.org; Tue, 4 Nov 2003 23:24:23 -0500 (EST) (envelope-from rodrigc) Date: Tue, 4 Nov 2003 23:24:23 -0500 From: Craig Rodrigues To: freebsd-threads@freebsd.org Message-ID: <20031105042423.GA1527@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Why -D_THREAD_SAFE? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 04:22:39 -0000 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