1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00
freebsd/contrib/tzcode/tzconfig.h
Warner Losh a34940a975 timezone: Move to the XSI/POSIX definition for timezone.
The old timezone(3) function has long since been obsolete and has a
fatally flawed interface. Retain this function for compatibility
purposes, but shift to providing the offset from UTC in the timezone
variable, whether or not the timezone observes summer time in the
'daylight' variable. Document the tzname variable that's already been
set. Also make _tztab() static. It's not used in libc (or anywhere in
the tree) and it's not exported as a public dynamic symbol.

Sponsored by:		Netflix
Reviewed by:		brooks, kib
Differential Revision:	https://reviews.freebsd.org/D44281
2024-03-11 22:19:31 -06:00

20 lines
384 B
C

#ifndef TZCONFIG_H_INCLUDED
#define TZCONFIG_H_INCLUDED
#define TM_GMTOFF tm_gmtoff
#define TM_ZONE tm_zone
#define HAVE_GETTEXT false
#define HAVE_SYS_STAT_H true
#define HAVE_UNISTD_H true
#define HAVE_STDINT_H true
#define PCTS 1
#define NETBSD_INSPIRED 0
#define STD_INSPIRED 1
#define HAVE_TZNAME 2
#define USG_COMPAT 2
#define ALTZONE 0
#endif /* !TZCONFIG_H_INCLUDED */