16 Jun
2010
16 Jun
'10
6:21 p.m.
On Wed, Jun 16, 2010 at 09:32:15PM +0200, Reimar Döffinger wrote:
On Wed, Jun 16, 2010 at 08:28:00PM +0200, diego wrote:
Log: Use a struct timezone as second parameter for gettimeofday in the function test. This works around (broken?) systems where just #including <sys/time.h> does not provide NULL.
Don't do that kind of hacks. I don't see the point of avoiding to include stdlib.h, but if you insist just use 0 instead of NULL, it is basically the same thing just uglier.
I don't see how this is a hack. The test now passes two parameters of the right type to gettimeofday(). Diego