[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 06:51:15 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
O'Connor, Daniel <address@hidden>:
> > 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.
>
> I couldn't see it, even better there is this in time.h...
> #if __BSD_VISIBLE
> char *timezone(int, int); /* XXX XSI conflict */
> void tzsetwall(void);
> time_t timelocal(struct tm * const);
> time_t timegm(struct tm * const);
> #endif /* __BSD_VISIBLE */
>
> So I guess the only way is "if BSD/OSX use timegm else use timezone".
OK. I'll accept a patch conditionalizing the code in that way.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- [gpsd-users] Build broken for non-QT, O'Connor, Daniel, 2015/01/12
- 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, 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