Re: BUG: gettimeofday() didn't handle first argument being NULL

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 20 19:15, 109224573 via Cygwin wrote: > this code works on Linux, but not msys2: > > #include > #include > int main() { > struct timezone tz; > puts("a"); > gettimeofday(NULL, tz); > puts("b"); > } > > > I guess the reason would be > winsup/cygwin/times.cc Thanks for the bug report.

BUG: gettimeofday() didn't handle first argument being NULL

2024-02-20 Thread 109224573 via Cygwin
this code works on Linux, but not msys2: #include #include int main() { struct timezone tz; puts("a"); gettimeofday(NULL, tz); puts("b"); } I guess the reason would be winsup/cygwin/times.cc extern "C" int gettimeofday (struct timeval *__restrict tv, void *__restrict tzvp) { struct