From a9b4b7b79682dd367ce26c29aa5dc85807201851 Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Fri, 20 Mar 2015 14:25:53 +0000 Subject: os/utils.c: Don't try to build os_move_fd() for WIN32 Signed-off-by: Colin Harrison Reviewed-by: Jon TURNEY --- os/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os') diff --git a/os/utils.c b/os/utils.c index 75769f17c..74d73b305 100644 --- a/os/utils.c +++ b/os/utils.c @@ -2091,6 +2091,7 @@ FormatUInt64Hex(uint64_t num, char *string) string[len] = '\0'; } +#if !defined(WIN32) || defined(__CYGWIN__) /* Move a file descriptor out of the way of our select mask; this * is useful for file descriptors which will never appear in the * select mask to avoid reducing the number of clients that can @@ -2114,3 +2115,4 @@ os_move_fd(int fd) close(fd); return newfd; } +#endif -- cgit v1.2.3