[ovs-dev] [PATCH] socket-util: Fix definition of LINUX.

Ben Pfaff blp at nicira.com
Fri Mar 14 23:00:28 UTC 2014


Reported-by: Mukesh Hira <mhira at vmware.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/socket-util.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/socket-util.c b/lib/socket-util.c
index 4c79cd6..aeda543 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -53,9 +53,9 @@ VLOG_DEFINE_THIS_MODULE(socket_util);
  * Thus, this file compiles all of the code regardless of the target, by
  * writing "if (LINUX)" instead of "#ifdef __linux__". */
 #ifdef __linux__
-#define LINUX 0
-#else
 #define LINUX 1
+#else
+#define LINUX 0
 #endif
 
 #ifndef O_DIRECTORY
-- 
1.7.10.4




More information about the dev mailing list