[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Build broken for non-QT
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-users] Build broken for non-QT |
Date: |
Tue, 13 Jan 2015 10:49:16 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Greg Troxel <address@hidden>:
>
> "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
>
Look again. timegm(), not gmtime().
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
signature.asc
Description: Digital signature
- Re: [gpsd-users] Build broken for non-QT, (continued)
- Re: [gpsd-users] Build broken for non-QT, Eric S. Raymond, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, O'Connor, Daniel, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, Greg Troxel, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, O'Connor, Daniel, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, Greg Troxel, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, Eric S. Raymond, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, Greg Troxel, 2015/01/13
- Re: [gpsd-users] Build broken for non-QT, O'Connor, Daniel, 2015/01/13
Re: [gpsd-users] Build broken for non-QT, Greg Troxel, 2015/01/13