瀏覽代碼

port r14525 from 1.1: Also try to get struct timespec from unistd.h, at least some versions of mingw define it there

Samuel Thibault 10 年之前
父節點
當前提交
edfb6204ec
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      configure.ac
  2. 1 0
      include/pthread_win32/pthread.h

+ 1 - 0
configure.ac

@@ -212,6 +212,7 @@ AC_CHECK_TYPES([struct timespec],
 	       [], [
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <time.h>
 ])
 

+ 1 - 0
include/pthread_win32/pthread.h

@@ -34,6 +34,7 @@ extern "C" {
 #include <windows.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <time.h>
 #include <stdio.h>
 #include <errno.h>