mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-04 03:36:00 +00:00
os: Define {ReadFdFrom,WriteFdTo}Client unconditionally
Otherwise this is broken on cygwin:
rrlease.c: In function ‘ProcRRCreateLease’:
rrlease.c:305:9: error: implicit declaration of function ‘WriteFdToClient’ [-Werror=implicit-function-declaration]
if (WriteFdToClient(client, fd, TRUE) < 0) {
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
90e0cdd42d
commit
f69cd2024e
3 changed files with 7 additions and 6 deletions
|
|
@ -113,14 +113,12 @@ typedef struct _Client {
|
|||
int req_fds;
|
||||
} ClientRec;
|
||||
|
||||
#if XTRANS_SEND_FDS
|
||||
static inline void
|
||||
SetReqFds(ClientPtr client, int req_fds) {
|
||||
if (client->req_fds != 0 && req_fds != client->req_fds)
|
||||
LogMessage(X_ERROR, "Mismatching number of request fds %d != %d\n", req_fds, client->req_fds);
|
||||
client->req_fds = req_fds;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Scheduling interface
|
||||
|
|
|
|||
Loading…
Reference in a new issue