sflow: Include the windefs.h header for windows.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 12 Mar 2014 21:59:02 +0000 (14:59 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 17 Mar 2014 21:20:49 +0000 (14:20 -0700)
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>
include/windows/windefs.h
lib/sflow.h

index 948462b..ca5b613 100644 (file)
@@ -23,6 +23,7 @@
 #include <windows.h>
 #include <BaseTsd.h>
 #include <io.h>
+#include <inttypes.h>
 
 #pragma comment(lib, "advapi32")
 
index 0d1f2b9..c6cde7f 100644 (file)
@@ -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,