Skip to content

Commit

Permalink
sflow: Include the windefs.h header for windows.
Browse files Browse the repository at this point in the history
sflow.h uses u_int32_t that needs windefs.h for compilation
in visual studio.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
shettyg committed Mar 17, 2014
1 parent f72e307 commit 31b97ff
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/windows/windefs.h
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
#include <windows.h>
#include <BaseTsd.h>
#include <io.h>
#include <inttypes.h>

#pragma comment(lib, "advapi32")

4 changes: 4 additions & 0 deletions lib/sflow.h
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 31b97ff

Please sign in to comment.