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>
This commit is contained in:
parent
2b114d6a51
commit
a9b4b7b796
|
@ -2091,6 +2091,7 @@ FormatUInt64Hex(uint64_t num, char *string)
|
||||||
string[len] = '\0';
|
string[len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(WIN32) || defined(__CYGWIN__)
|
||||||
/* Move a file descriptor out of the way of our select mask; this
|
/* Move a file descriptor out of the way of our select mask; this
|
||||||
* is useful for file descriptors which will never appear in the
|
* is useful for file descriptors which will never appear in the
|
||||||
* select mask to avoid reducing the number of clients that can
|
* select mask to avoid reducing the number of clients that can
|
||||||
|
@ -2114,3 +2115,4 @@ os_move_fd(int fd)
|
||||||
close(fd);
|
close(fd);
|
||||||
return newfd;
|
return newfd;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue