Subject: Re: libxslt needs -D_REENTRANT
To: None <>
From: Blair Sadewitz <>
List: pkgsrc-users
Date: 01/24/2007 17:38:23
If you look at ${WRKSRC}/libexslt/date.c, you will see the problem.
It looks for localtime_r via #ifdef _HAS_LOCALTIME_R (or something
like that).
Then, if it has it, it defines _POSIX_SOURCE (not POSIX_C_SOURCE, and
not with any version number).

I don't understand the logic behind checking for the availability of a
function and then invoking its feature test afterward.  At any rate, I
just didn't know what the appropriate definition to do this properly
was.  I didn't define _REENTRANT beacuse it was a threaded
application, just because it was one way to pull that in for date.c.

What is the appropriate, portable way to do this?



Support WFMU-FM: free-form radio for the masses!

91.1 FM Jersey City, NJ
90.1 FM Mt. Hope, NY

"The Reggae Schoolroom":