compiling FreeBSD date on Linux

Roland Smith rsmith at
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.

[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 :

More information about the freebsd-questions mailing list