From: Tom Rondeau Date: Wed, 30 Jun 2010 01:12:33 +0000 (-0400) Subject: From my reading, we should never need to define the timespec struct (so we will wait... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8c55d94d3839fc0a192acd6a39999ee5f589221e;p=debian%2Fgnuradio From my reading, we should never need to define the timespec struct (so we will wait until this bites me). --- diff --git a/gr-qtgui/src/lib/highResTimeFunctions.h b/gr-qtgui/src/lib/highResTimeFunctions.h index dc5e1bb8..251bbad8 100644 --- a/gr-qtgui/src/lib/highResTimeFunctions.h +++ b/gr-qtgui/src/lib/highResTimeFunctions.h @@ -264,16 +264,7 @@ get_highres_clock(struct timespec* ret) #else -// Test to see if timespec is defined; if not, define it here -#if !defined __timespec_defined -typedef struct _timespec -{ - long int tv_sec; - long int tv_nsec; -} timespec; -#endif - -// Trick the system into thinking it has an nsec timer +// Trick timer functions into thinking it has an nsec timer // but only use the low resolution (usec) timer. static inline void get_highres_clock(struct timespec* ret)