pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: libxslt needs -D_REENTRANT
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?
Regards,
--Blair
--
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>
91.1 FM Jersey City, NJ
90.1 FM Mt. Hope, NY
"The Reggae Schoolroom":
<http://www.wfmu.org/playlists/RS/>
Home |
Main Index |
Thread Index |
Old Index