Use __linux__ instead of LINUX_DATAPATH in C code.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Jan 2014 23:33:25 +0000 (15:33 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Mar 2014 15:51:55 +0000 (07:51 -0800)
commit2f51a7ebdaeb1067e3eef873c62f6c22989c9aad
treef2e28ae0a55fe3c0fc23095d8bb5c75e90bee381
parent96d878178dc42839415b210c5631dc54d8eaed79
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>
lib/command-line.c
lib/dpif.c
lib/netdev.c
lib/socket-util.c
lib/vlandev.c
vswitchd/system-stats.c