diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2014-03-12 14:59:02 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2014-03-17 14:20:49 -0700 |
commit | 31b97ffddd2c16ec7c75f7aa2bff50f887f41a7d (patch) | |
tree | db0147c478d99b27f5c1509255ccbadcb5ad08c1 | |
parent | f72e3073d70232ad6bebb9186cbf37a14793fb95 (diff) | |
download | openvswitch-31b97ffddd2c16ec7c75f7aa2bff50f887f41a7d.tar.gz |
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 <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
-rw-r--r-- | include/windows/windefs.h | 1 | ||||
-rw-r--r-- | lib/sflow.h | 4 |
2 files changed, 5 insertions, 0 deletions
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 <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 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, |