mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-04-05 20:40:42 +02:00
Remove unused ETEST & ESZTEST macros from XlibInt.c
Left behind when 15e5eaf628 removed support for building without XCB.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
This commit is contained in:
parent
1ffc0c5503
commit
321392ded1
1 changed files with 0 additions and 33 deletions
|
|
@ -74,27 +74,6 @@ xthread_t (*_Xthread_self_fn)(void) = NULL;
|
|||
|
||||
#endif /* XTHREADS */
|
||||
|
||||
/* check for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
|
||||
* systems are broken and return EWOULDBLOCK when they should return EAGAIN
|
||||
*/
|
||||
#ifdef WIN32
|
||||
#define ETEST() (WSAGetLastError() == WSAEWOULDBLOCK)
|
||||
#else
|
||||
#ifdef __CYGWIN__ /* Cygwin uses ENOBUFS to signal socket is full */
|
||||
#define ETEST() (errno == EAGAIN || errno == EWOULDBLOCK || errno == ENOBUFS)
|
||||
#else
|
||||
#if defined(EAGAIN) && defined(EWOULDBLOCK)
|
||||
#define ETEST() (errno == EAGAIN || errno == EWOULDBLOCK)
|
||||
#else
|
||||
#ifdef EAGAIN
|
||||
#define ETEST() (errno == EAGAIN)
|
||||
#else
|
||||
#define ETEST() (errno == EWOULDBLOCK)
|
||||
#endif /* EAGAIN */
|
||||
#endif /* EAGAIN && EWOULDBLOCK */
|
||||
#endif /* __CYGWIN__ */
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifdef WIN32
|
||||
#define ECHECK(err) (WSAGetLastError() == err)
|
||||
#define ESET(val) WSASetLastError(val)
|
||||
|
|
@ -108,18 +87,6 @@ xthread_t (*_Xthread_self_fn)(void) = NULL;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(LOCALCONN) || defined(LACHMAN)
|
||||
#ifdef EMSGSIZE
|
||||
#define ESZTEST() (ECHECK(EMSGSIZE) || ECHECK(ERANGE))
|
||||
#else
|
||||
#define ESZTEST() ECHECK(ERANGE)
|
||||
#endif
|
||||
#else
|
||||
#ifdef EMSGSIZE
|
||||
#define ESZTEST() ECHECK(EMSGSIZE)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __UNIXOS2__
|
||||
#include <limits.h>
|
||||
#define MAX_PATH _POSIX_PATH_MAX
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue