sflow.h uses u_int32_t that needs windefs.h for compilation in visual studio.
Signed-off-by: Gurucharan Shetty <gshe...@nicira.com> --- include/windows/windefs.h | 1 + lib/sflow.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/windows/windefs.h b/include/windows/windefs.h index 948462b..ca5b613 100644 --- a/include/windows/windefs.h +++ b/include/windows/windefs.h @@ -23,6 +23,7 @@ #include <windows.h> #include <BaseTsd.h> #include <io.h> +#include <inttypes.h> #pragma comment(lib, "advapi32") diff --git a/lib/sflow.h b/lib/sflow.h index 0d1f2b9..c6cde7f 100644 --- a/lib/sflow.h +++ b/lib/sflow.h @@ -8,6 +8,10 @@ #ifndef SFLOW_H #define SFLOW_H 1 +#ifdef _WIN32 +#include "windefs.h" +#endif + typedef enum { SFL_DSCLASS_IFINDEX = 0, SFL_DSCLASS_VLAN = 1, -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev