From: Ankur Sharma Date: Tue, 12 Aug 2014 18:36:27 +0000 (-0700) Subject: lib/netlink-protocol.h: Do not include headers for windows kernel build. X-Git-Tag: v2.4.0~1649 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=99f368f446358d192226c385882ef75450b737ab;p=cascardo%2Fovs.git lib/netlink-protocol.h: Do not include headers for windows kernel build. Added saurabh's fix to not to include some header files in lib/netlink-protocol.h not needed by windows driver. This is a temporary fix to make sure that windows driver can compile. We are working in parallel on adding netlink support in windows driver (https://github.com/openvswitch/ovs-issues/issues/18). With netlink support changes we will get rid of the dependency on lib/netlink-protocol.h. Testing: 1. Verified make distcheck on linux. 2. Verified that windows driver can compile now. 3. Verified that ping works over vxlan tunnel. Signed-off-by: Ankur Sharma Co-authored-by: Saurabh Shah Tested-by: Ankur Sharma Reported-by: Alin Serdean Reported-at: https://github.com/openvswitch/ovs-issues/issues/21 Signed-off-by: Ben Pfaff --- diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h index 893805576..5fbcce152 100644 --- a/lib/netlink-protocol.h +++ b/lib/netlink-protocol.h @@ -29,9 +29,15 @@ * on other platforms it directly defines the structures and macros itself. */ +/* This file is included by windows driver as well (as of now). + * It does not have access to following header files, + * hence do not include them for windows driver. + */ +#ifndef OVS_WIN_DP #include #include #include "util.h" +#endif #ifdef HAVE_NETLINK #include