When compiling with mingw64, I got redefinition of "struct timespec".
This patch should fix it. If no one objects, I will commit it in 24
hours.

Jie
  * sysdep.h (struct timespec): Only define when !_TIMESPEC_DEFINED.

Index: sysdep.h
===================================================================
--- sysdep.h	(revision 1971)
+++ sysdep.h	(working copy)
@@ -75,7 +75,9 @@
 
 #ifndef HAVE_NANOSLEEP
 #include <unistd.h>
+#ifndef _TIMESPEC_DEFINED
 struct timespec { unsigned long tv_sec, tv_nsec; };
+#endif
 #define nanosleep(req, rem) usleep((req)->tv_sec * 1000 * 1000 + (req)->tv_nsec / 1000)
 #endif
 
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to