work on both FreeBSD and OpenBSD.
Specifically, both FreeBSD and OpenBSD have the timelocal() function. In
fact most unixes have this function, so I'm not sure what the best fix
generically would be. This fix is no worse than the one that was there
before, however.
Submitted by: Niklas Hallqvist <niklas@filippa.appli.se>
Obtained from: OpenBSD by way of Niklas