From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3a063ab61f0dfe6b X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,3a063ab61f0dfe6b X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-01-13 16:22:32 PST Xref: sparky comp.unix.ultrix:1954 comp.sys.dec:1180 Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!swrinde!gatech!psuvax1!larch!hirai From: hirai@cc.swarthmore.edu (Eiji Hirai) Newsgroups: comp.unix.ultrix,comp.sys.dec Subject: Re: problems with time.h under Ultrix 4.x Message-ID: Date: 14 Jan 92 00:00:23 GMT References: <1992Jan10.234037.19422@mtholyoke.edu> Sender: news@cc.swarthmore.edu (USENET News System) Organization: Swarthmore College Computing Center, Swarthmore, PA, USA Nntp-Posting-Host: gingko jbotz@mtholyoke.edu (Jurgen Botz) writes: > About half the software I've compiled under Ultrix 4.x has had problems > with DEC's "time.h". When I compile source code from the net using gcc 1.40 in Ultrix 4.2, I usually change the source so that functions returning the number of seconds since 1970 return time_t instead of int or long. So like if you have code that looks like long now; time(&now); variable = localtime(&now); then I change long to time_t. -- Eiji Hirai : : : : : :: ::: :::: ::::: Unix Hacker for Swarthmore College, : : : : : :: ::: :::: ::::: Computing Center, Swarthmore, PA, USA. Copyright 1992 by Eiji Hirai. I don't speak for Swarthmore College. All Rights Reserved.