mingw has a _ftime_s prototype in its headers, but no corresponding symbol available at link time. Workaround this issue for now by #defining it to _ftime. This is untested on win64 where the workaround may not be needed. --- client/threads.cpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/client/threads.cpp b/client/threads.cpp index bf499e7..e255bee 100644 --- a/client/threads.cpp +++ b/client/threads.cpp @@ -28,6 +28,13 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif +#ifdef __MINGW32__ +//workaround for what I think is a mingw bug: it has a prototype for +//_ftime_s in its headers, but no symbol for it at link time. +//The #define from common.h cannot be used since it breaks other mingw +//headers if any are included after the #define. +#define _ftime_s _ftime +#endif Thread::Thread(thread_main_t thread_main, void* opaque) { -- 1.7.7.6 _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel