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.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 m4/openvswitch.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index 59e1352..01d2269 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -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])
-- 
2.10.2.windows.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to