Skip to content

Commit

Permalink
build-windows: Add check for struct timespec
Browse files Browse the repository at this point in the history
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]>
Acked-by: Ben Pfaff <[email protected]>
Acked-by: Anand Kumar <[email protected]>
  • Loading branch information
aserdean committed Nov 14, 2017
1 parent 5ec39c8 commit 2b3f8b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2b3f8b6

Please sign in to comment.