Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
---
 lib/socket-util.c |    2 ++
 lib/socket-util.h |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/socket-util.c b/lib/socket-util.c
index 9095418..d3b580d 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -1022,6 +1022,7 @@ error:
     return -error;
 }
 
+#ifndef _WIN32
 /* Returns a readable and writable fd for /dev/null, if successful, otherwise
  * a negative errno value.  The caller must not close the returned fd (because
  * the same fd will be handed out to subsequent callers). */
@@ -1043,6 +1044,7 @@ get_null_fd(void)
 
     return null_fd;
 }
+#endif
 
 int
 read_fully(int fd, void *p_, size_t size, size_t *bytes_read)
diff --git a/lib/socket-util.h b/lib/socket-util.h
index ba4d686..5c32033 100644
--- a/lib/socket-util.h
+++ b/lib/socket-util.h
@@ -46,9 +46,9 @@ int drain_rcvbuf(int fd);
 int make_unix_socket(int style, bool nonblock,
                      const char *bind_path, const char *connect_path);
 int get_unix_name_len(socklen_t sun_len);
+int get_null_fd(void);
 #endif
 ovs_be32 guess_netmask(ovs_be32 ip);
-int get_null_fd(void);
 
 bool inet_parse_active(const char *target, uint16_t default_port,
                        struct sockaddr_storage *ssp);
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to