compiling FreeBSD date on Linux

Roland Smith rsmith at xs4all.nl
Fri May 22 07:58:44 UTC 2009


On Thu, May 21, 2009 at 09:08:31PM -0300, francis keyes wrote:
>  I patched date.c and tried to compile but I get a few errors, as you suspected:
> 
>  In file included from date.c:59:
>  vary.h:35: warning: *struct tm* declared inside parameter list
>  vary.h:35: warning: its scope is only this definition or declaration, which is probably not what
>  you want
>  date.c: In function *main*:
>  date.c:85: error: storage size of *lt* isn*t known

Add "#include <time.h>" to date.c.

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090522/7a017e91/attachment.pgp


More information about the freebsd-questions mailing list