Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-24 13:40:20 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-24 13:40:20 +0300
commit97d1bed7d1b87b487ded268129a4729a04c4c2d0 (patch)
tree29ae3bf1b3ed2ca660ca25d78e3856818c6ad138
parent973edf58a67d64feadc15dae5b5529e639c53761 (diff)
MinGW has struct timespec.
I hope this is the right way to #define HAVE_STRUCT_TIMESPEC. It got things building on MinGW for me.
-rw-r--r--mgizapp/w32/pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mgizapp/w32/pthread.h b/mgizapp/w32/pthread.h
index f3d2dac..d46001f 100644
--- a/mgizapp/w32/pthread.h
+++ b/mgizapp/w32/pthread.h
@@ -302,6 +302,10 @@ enum {
#endif
#endif
+#ifdef __MINGW32__
+#define HAVE_STRUCT_TIMESPEC 1
+#endif /* __MINGW32__ */
+
#ifndef HAVE_STRUCT_TIMESPEC
#define HAVE_STRUCT_TIMESPEC 1
struct timespec {