summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Harrison <colin.harrison@virgin.net>2015-03-20 14:25:53 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-04-22 12:55:29 +0100
commita9b4b7b79682dd367ce26c29aa5dc85807201851 (patch)
treeebc26b5274254efb0afc5c94f35849f0f39ac602
parent2b114d6a516ee584ff89b96b12acf91799b6d677 (diff)
os/utils.c: Don't try to build os_move_fd() for WIN32
Signed-off-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--os/utils.c2
1 files changed, 2 insertions, 0 deletions
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