Преглед на файлове

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>