From: Gurucharan Shetty Date: Wed, 12 Mar 2014 21:59:02 +0000 (-0700) Subject: sflow: Include the windefs.h header for windows. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~95 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=31b97ffddd2c16ec7c75f7aa2bff50f887f41a7d;p=sliver-openvswitch.git sflow: Include the windefs.h header for windows. sflow.h uses u_int32_t that needs windefs.h for compilation in visual studio. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/include/windows/windefs.h b/include/windows/windefs.h index 948462bd6..ca5b6136d 100644 --- a/include/windows/windefs.h +++ b/include/windows/windefs.h @@ -23,6 +23,7 @@ #include #include #include +#include #pragma comment(lib, "advapi32") diff --git a/lib/sflow.h b/lib/sflow.h index 0d1f2b9cd..c6cde7f23 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,