What's the trick to use timeval when _POSIX_C_SOURCE=200112 is set? Consider the following small program:
Code:
#include <sys/time.h>
#include <time.h>
int main()
{
struct timeval tv;
gettimeofday(&tv,NULL);
return 0;
}
When compiled with
#include <time.h>
int main()
{
struct timeval tv;
gettimeofday(&tv,NULL);
return 0;
}
Code:
/usr/bin/c99 -D_POSIX_C_SOURCE=200112 -c -o tv.o tv.c
timeval is an "incomplete type", without the -D_POSIX_C_SOURCE=200112, things work as they should. I currently assume the the ffmpeg maintainers have some good reason to set _POSIX_C_SOURCE, so I don't want to remove this.