summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAlin Gabriel Serdean <aserdean@ovn.org>2017-11-01 19:19:06 +0200
committerAlin Gabriel Serdean <aserdean@ovn.org>2017-11-14 05:46:08 +0200
commit2b3f8b6e238604ddaf9c0f964080e257968a2478 (patch)
treeaff97a258bb16d906fede7d7da40e084c3086368 /m4
parent5ec39c8a3501fd907f8e6e76974cc452e8d6dcc7 (diff)
downloadopenvswitch-2b3f8b6e238604ddaf9c0f964080e257968a2478.tar.gz
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. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org> Acked-by: Anand Kumar <kumaranand@vmware.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index 59e1352e3..01d2269db 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])