$OpenBSD: patch-src_fifo_cpp,v 1.2 2012/06/23 12:23:31 ajacoutot Exp $ --- src/fifo.cpp.orig Fri Jan 6 18:03:00 2012 +++ src/fifo.cpp Sat Jun 23 12:40:10 2012 @@ -39,6 +39,12 @@ #include "wave.h" #include "debug.h" +#ifndef timespeccmp +#define timespeccmp(tvp, uvp, cmp) \ + (((tvp)->tv_sec == (uvp)->tv_sec) ? \ + ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \ + ((tvp)->tv_sec cmp (uvp)->tv_sec)) +#endif //> //=)) + break; + sched_yield(); } assert (gettimeofday(&tv, NULL) != -1);