Re: things I don't understand in src/env/time.c + bugs + suggested patch
Andrew Makhorin <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <1485774599.14749.7.camel@corvax> |
> > The problem I > > encountered is that gcc (Debian 4.7.2-5) 4.7.2 installed on my Linux > > machine doesn't have gmtime_s, strerror_s, and strtok_s. > > My understanding is that it is unlikely that a version will be > provided by glibc. > > > It is unclear > > what to do if no thread-safe version of these functions are available. > > I think that configure should check for the posix versions or the > windows versions and fail if not found when TLS is set. I can prepare > a patch for this, but I can only test it on Linux. > I think it is not needed to add such configure checks. If the check for tls is passed, corresponding _r functions should exist in libc. Andrew Makhorin