On 2 November 2012 14:14, Paolo Bonzini <pbonz...@redhat.com> wrote:
> +#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
> +    struct timespec ts;
> +    clock_gettime(CLOCK_REALTIME, &ts);


qemu-thread-posix.c:198:5: warning: implicit declaration of function
'clock_gettime' is invalid in C99
      [-Wimplicit-function-declaration]
    clock_gettime(CLOCK_REALTIME, &ts);
    ^
qemu-thread-posix.c:198:19: error: use of undeclared identifier 'CLOCK_REALTIME'
    clock_gettime(CLOCK_REALTIME, &ts);
                  ^
1 warning and 1 error generated.
make: *** [qemu-thread-posix.o] Error 1

MacOS doesn't implement clock_gettime()...

-- PMM

Reply via email to