socket-util: Fix definition of LINUX.
authorBen Pfaff <blp@nicira.com>
Mon, 17 Mar 2014 20:00:30 +0000 (13:00 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 17 Mar 2014 20:00:46 +0000 (13:00 -0700)
Reported-by: Mukesh Hira <mhira@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
lib/socket-util.c

index 4c79cd6..aeda543 100644 (file)
@@ -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