[ovs-git] Open vSwitch: Makefile: Compile Linux-specific files based on __linux__ macro. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Mar 5 16:01:21 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  5020f5f099526ec224ba0b1703806b42ebdaee5a (commit)
       via  2f51a7ebdaeb1067e3eef873c62f6c22989c9aad (commit)
      from  96d878178dc42839415b210c5631dc54d8eaed79 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5020f5f099526ec224ba0b1703806b42ebdaee5a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5020f5f099526ec224ba0b1703806b42ebdaee5a
Author: Ben Pfaff <blp at nicira.com>
		
Makefile: Compile Linux-specific files based on __linux__ macro.
		
We want to conditionally compile several files based on whether we're
building for a Linux host, so we need some Automake conditional for that.
Previously this was based on whether Netlink is available and we're not
on ESX (since ESX has Netlink but isn't Linux), but it's more
straightforward to just test for Linux directly.

CC: Luigi Rizzo <rizzo at iet.unipi.it>
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 2f51a7ebdaeb1067e3eef873c62f6c22989c9aad
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=2f51a7ebdaeb1067e3eef873c62f6c22989c9aad
Author: Ben Pfaff <blp at nicira.com>
		
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 at iet.unipi.it>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 acinclude.m4            |   17 ++++++++++++++++-
 configure.ac            |    6 +-----
 lib/automake.mk         |    2 +-
 lib/command-line.c      |    8 ++++----
 lib/dpif.c              |    4 ++--
 lib/netdev.c            |    2 +-
 lib/socket-util.c       |   20 +++++++++++---------
 lib/vlandev.c           |    8 ++++----
 utilities/automake.mk   |    2 +-
 vswitchd/system-stats.c |   25 +++++++++++++------------
 10 files changed, 54 insertions(+), 40 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list