From owner-freebsd-hackers Wed Jun 27 3: 1:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from london.physics.purdue.edu (london.physics.purdue.edu [128.210.67.35]) by hub.freebsd.org (Postfix) with ESMTP id ED5F137B406 for ; Wed, 27 Jun 2001 03:01:22 -0700 (PDT) (envelope-from will@physics.purdue.edu) Received: from bohr.physics.purdue.edu (bohr.physics.purdue.edu [128.210.67.12]) by london.physics.purdue.edu (8.8.8/8.8.8) with ESMTP id FAA09581; Wed, 27 Jun 2001 05:01:21 -0500 (EST) Received: by bohr.physics.purdue.edu (Postfix, from userid 12409) id 9D6035BB5; Wed, 27 Jun 2001 05:01:21 -0500 (EST) Date: Wed, 27 Jun 2001 05:01:21 -0500 From: Will Andrews To: David Petrou Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what #define for thread-safeness? Message-ID: <20010627050121.B97456@bohr.physics.purdue.edu> Reply-To: Will Andrews References: <20010626234302.E68913@amant.pdl.cs.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <20010626234302.E68913@amant.pdl.cs.cmu.edu>; from dpetrou@cs.cmu.edu on Tue, Jun 26, 2001 at 11:43:02PM -0400 X-Operating-System: FreeBSD 4.3-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jun 26, 2001 at 11:43:02PM -0400, David Petrou (dpetrou@cs.cmu.edu) wrote: > Hi. On linux, I know that when compiling threaded code I need to > #define _REENTRANT. What's the right thing to do on FreeBSD? I've > searched around the FreeBSD pages and have come up empty. I googled > around and found a post from a Mozilla page recommending I #define > _THREAD_SAFE. I'd just like an authoratative answer so I don't get > bit by some weirdness down the line. -D_THREAD_SAFE is right. FreeBSD uses it in the ports collection. -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message