revalidator: Fix ukey stats cache updating.
[sliver-openvswitch.git] / lib / socket-util.h
index f7f128a..2acc974 100644 (file)
@@ -38,7 +38,9 @@ int lookup_hostname(const char *host_name, struct in_addr *);
 
 int get_socket_rcvbuf(int sock);
 int check_connection_completion(int fd);
+#ifndef _WIN32
 int drain_rcvbuf(int fd);
+#endif
 void drain_fd(int fd, size_t n_packets);
 #ifndef _WIN32
 int make_unix_socket(int style, bool nonblock,
@@ -46,7 +48,6 @@ int make_unix_socket(int style, bool nonblock,
 int get_unix_name_len(socklen_t sun_len);
 #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);
@@ -64,8 +65,10 @@ int write_fully(int fd, const void *, size_t, size_t *bytes_written);
 int fsync_parent_dir(const char *file_name);
 int get_mtime(const char *file_name, struct timespec *mtime);
 
+#ifndef _WIN32
 void xpipe(int fds[2]);
 void xpipe_nonblocking(int fds[2]);
+#endif
 
 char *describe_fd(int fd);