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>
(cherry picked from commit a9b4b7b796)
This commit is contained in:
Colin Harrison 2015-03-20 14:25:53 +00:00 committed by Adam Jackson
parent cc88bb64ad
commit 953520ef98
1 changed files with 2 additions and 0 deletions

View File

@ -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