gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Build broken for non-QT


From: Greg Troxel
Subject: Re: [gpsd-users] Build broken for non-QT
Date: Tue, 13 Jan 2015 10:19:30 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.4 (berkeley-unix)

"Eric S. Raymond" <address@hidden> writes:

>> -    return (timestamp_t)mktime(&tm) - timezone + usec;
>> +    return (timestamp_t)timegm(&tm) + usec;
>>  #else
>>      double usec = 0;
>
> That patch would reintroduce a glibc dependency, which we're trying to avoid.
>
> The timezone global is an ugly but standardized feature of the POSIX/SuS API,
> supposed to be set after tzset(3).  Does FreeBSD really not have it?  Perhaps
> there's a feature macro you need to enable.

FWIW, gmtime is specified by POSIX:

http://pubs.opengroup.org/onlinepubs/009695399/functions/gmtime.html

Attachment: pgp7FEwzZcZpI.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]