From my reading, we should never need to define the timespec struct (so we will wait...
authorTom Rondeau <trondeau@vt.edu>
Wed, 30 Jun 2010 01:12:33 +0000 (21:12 -0400)
committerTom Rondeau <trondeau@vt.edu>
Wed, 30 Jun 2010 01:12:33 +0000 (21:12 -0400)
gr-qtgui/src/lib/highResTimeFunctions.h

index dc5e1bb801068ffdb0423e0541c4c43c2aa38932..251bbad8b1cb414908e0636e668ed7ea706e54f2 100644 (file)
@@ -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)