On Wed, Nov 01, 2017 at 07:19:06PM +0200, Alin Gabriel Serdean wrote: > 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])
Is this something that the Windows pthread we recommend checks for? I don't see any checks for it in the OVS codebase itself. If so, Acked-by: Ben Pfaff <[email protected]> Thanks! _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
