mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 00:10:05 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue