mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Use __linux__ instead of LINUX_DATAPATH in C code.
The LINUX_DATAPATH C preprocessor symbol was originally meant to be used as a signal for whether the Linux datapath module could be used, but it was used as a proxy for a lot of other stuff that is really just Linux specific. This commit switches all of these users to just test for __linux__, which is more straightforward and should have the same result. CC: Luigi Rizzo <rizzo@iet.unipi.it> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -102,7 +102,7 @@ netdev_initialize(void)
|
||||
fatal_signal_add_hook(restore_all_flags, NULL, NULL, true);
|
||||
netdev_vport_patch_register();
|
||||
|
||||
#ifdef LINUX_DATAPATH
|
||||
#ifdef __linux__
|
||||
netdev_register_provider(&netdev_linux_class);
|
||||
netdev_register_provider(&netdev_internal_class);
|
||||
netdev_register_provider(&netdev_tap_class);
|
||||
|
Reference in New Issue
Block a user