Article View: comp.unix.programmer
Article #3782Re: timezone macro for autoconf?
From: Russ Allbery
Date: Mon, 17 Apr 2000 00:00
Date: Mon, 17 Apr 2000 00:00
17 lines
1372 bytes
1372 bytes
In gnu.utils.help, Dan Kegel <dank@alumni.caltech.edu> writes: > The Single Unix Standard, v2, defines timezone as > extern int timezone; > So does Linux. BSD, though, defines it as > char *timezone(int zone, int dst); > Does anyone have a good autoconf macro for figuring out > how to get at the timezone offset (the extern int) portably? No, but I need to write one for INN as well. On a BSD system, you generally want to get the timezone offset from the tm_gmtoff member of struct tm; SysV doesn't have a tm_gmtoff member. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylog78chos.fsf@windlord.stanford.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38FBB4DB.DE12E1C4@alumni.caltech.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,8ce1c34c9f5a1eaa X-Google-Attributes: gid10c696,public X-Google-Thread: 109f73,8ce1c34c9f5a1eaa X-Google-Attributes: gid109f73,public X-Google-Thread: fc89c,8ce1c34c9f5a1eaa X-Google-Attributes: gidfc89c,public From: Russ Allbery <rra@stanford.edu> Subject: Re: timezone macro for autoconf? Date: 2000/04/17 Message-ID: <ylog78chos.fsf@windlord.stanford.edu> X-Deja-AN: 612493122 References: <38FBB4DB.DE12E1C4@alumni.caltech.edu> Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,gnu.utils.help