Work around header type clashes in Xen builds
authorKeith Amidon <keith@nicira.com>
Wed, 4 Mar 2009 18:58:53 +0000 (10:58 -0800)
committerKeith Amidon <keith@nicira.com>
Wed, 4 Mar 2009 18:58:53 +0000 (10:58 -0800)
include/openflow/datapath-protocol.h

index da6207915aaac2a79a803e2698e29ccc67bdc2dd..ec3d72520dee4b8f5b8c254c727533c8af5f7dad 100644 (file)
 #ifndef OPENFLOW_DATAPATH_PROTOCOL_H
 #define OPENFLOW_DATAPATH_PROTOCOL_H 1
 
+#ifdef __KERNEL__
 #include <linux/types.h>
+#else
+#include <sys/types.h>
+#endif
 #include <linux/if_ether.h>
 
 #define ODP_MAX 256             /* Maximum number of datapaths. */