X-Original-To: pgsql-patches@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id E32AD925712 for ; Mon, 26 May 2003 13:32:21 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 45284-02 for ; Mon, 26 May 2003 13:32:17 -0400 (EDT) Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by developer.postgresql.org (Postfix) with ESMTP id E92B19256D5 for ; Mon, 26 May 2003 13:32:16 -0400 (EDT) Received: from [10.0.2.5] ([216.208.117.7]) by tomts7-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030526173203.FLOZ23765.tomts7-srv.bellnexxia.net@[10.0.2.5]>; Mon, 26 May 2003 13:32:03 -0400 Subject: Re: [HACKERS] ECPG thread-safety From: Rod Taylor To: Bruce Momjian Cc: Shridhar Daithankar , PostgreSQL Patches In-Reply-To: <200305261706.h4QH6aB06687@candle.pha.pa.us> References: <200305261706.h4QH6aB06687@candle.pha.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-GUjfb8fpU1HXXOSuKrG8" Organization: Message-Id: <1053970321.10179.13.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 26 May 2003 13:32:03 -0400 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/139 X-Sequence-Number: 7082 --=-GUjfb8fpU1HXXOSuKrG8 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2003-05-26 at 13:06, Bruce Momjian wrote: > Shridhar Daithankar wrote: > > On Friday 28 March 2003 21:45, you wrote: > > > For testing the library, I think it is enough to init an thread attr.= like > > > pthread_init_attr, that should be enough to test header and library. > >=20 > > And compiler flags, I forgot.. -pthread on freeBSD/gcc and -D_REENTRANT= on=20 > > linux at least. FreeBSD needs _THREAD_SAFE as well IIRC. >=20 > Are you saying FreeBSD actually has a -pthread compiler flag? And Linux > needs REENTRANT. We can do that. Here is an updated patch. Of course, > I need to run autoconf too. If I'm not mistaken, you use -lpthread on FreeBSD 4.x, and -lc_r on FreeBSD 5.x. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-GUjfb8fpU1HXXOSuKrG8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA+0k+Q6DETLow6vwwRAhZZAJ9hg+nVnIpYwywL5fNThjRdZnG4JACfc2zn nRszS2rmYekQahFIOSZ5QM4= =ub/t -----END PGP SIGNATURE----- --=-GUjfb8fpU1HXXOSuKrG8--