build-windows: Add check for struct timespec
Starting from WDK 10 the structure `timespec` is defined in <time.h>.
This patch adds a check for the structure to make <pthread.h> aware of it, so
it doesn't try to redefine the structure.
Acked-by: Ben Pfaff
Acked-by: Anand Kumar
@@ -143,6 +143,7 @@ AC_DEFUN([OVS_CHECK_WIN32],
)
AC_DEFINE([WIN32], [1], [Define to 1 if building on WIN32.])
+ AC_CHECK_TYPES([struct timespec], [], [], [[#include <time.h>]])
AH_BOTTOM([#ifdef WIN32
#include "include/windows/windefs.h"
#endif])
