New pthread_time.h stub header. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/stable/v2.x@4483 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/ChangeLog b/mingw-w64-headers/crt/ChangeLog index 0846155..142fb05 100644 --- a/mingw-w64-headers/crt/ChangeLog +++ b/mingw-w64-headers/crt/ChangeLog
@@ -1,3 +1,8 @@ +2011-09-17 Jonathan Yong <jon_y@users.sourceforge.net> + + * pthread_time.h: New dummy header. + * time.h: Include dummy header to support winpthreads. + 2011-09-12 Jonathan Yong <jon_y@users.sourceforge.net> * errno.h (EOVERFLOW): Fix typo, use EFBIG.
diff --git a/mingw-w64-headers/crt/pthread_time.h b/mingw-w64-headers/crt/pthread_time.h new file mode 100644 index 0000000..aa2b24e --- /dev/null +++ b/mingw-w64-headers/crt/pthread_time.h
@@ -0,0 +1 @@ +/* Dummy header, which gets overriden, if winpthread library gets installed. */
diff --git a/mingw-w64-headers/crt/pthread_unistd.h b/mingw-w64-headers/crt/pthread_unistd.h new file mode 100644 index 0000000..aa2b24e --- /dev/null +++ b/mingw-w64-headers/crt/pthread_unistd.h
@@ -0,0 +1 @@ +/* Dummy header, which gets overriden, if winpthread library gets installed. */
diff --git a/mingw-w64-headers/crt/time.h b/mingw-w64-headers/crt/time.h index f1c8d1f..5197732 100644 --- a/mingw-w64-headers/crt/time.h +++ b/mingw-w64-headers/crt/time.h
@@ -275,6 +275,7 @@ /* Adding timespec definition. */ #include <sys/timeb.h> +#include <pthread_time.h> #endif /* End _TIME_H_ */
diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h index 1586604..c7f6bc7 100644 --- a/mingw-w64-headers/crt/unistd.h +++ b/mingw-w64-headers/crt/unistd.h
@@ -66,6 +66,8 @@ } #endif +#include <pthread_unistd.h> + #undef __UNISTD_H_SOURCED__ #endif /* _UNISTD_H */