On Tue, Jul 19, 2011 at 00:33, Jie Zhang wrote:
> 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.
>
> +#ifndef _TIMESPEC_DEFINED
>  struct timespec { unsigned long tv_sec, tv_nsec; };
> +#endif

i dont like relying on undocumented conventions.  how about adding a
configure check instead to see if struct timespec exists and then we
can key off of that ?

AC_CHECK_MEMBER([struct timespec.tv_sec])
AF_IF([test "x$ac_cv_member_struct_timespec_tv_sec" = "xyes"],[
    AC_DEFINE([HAVE_STRUCT_TIMESPEC], [1], [We have struct timespec])
])
-mike

------------------------------------------------------------------------------
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