diff options
Diffstat (limited to 'libX11/src/xcb_io.c')
-rw-r--r-- | libX11/src/xcb_io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libX11/src/xcb_io.c b/libX11/src/xcb_io.c index 727c6c79f..db75e4a24 100644 --- a/libX11/src/xcb_io.c +++ b/libX11/src/xcb_io.c @@ -23,6 +23,9 @@ #ifdef HAVE_SYS_SELECT_H #include <sys/select.h> #endif +#include <sys/time.h> + +#include <X11/Xtrans/Xtrans.h> #define xcb_fail_assert(_message, _var) { \ unsigned int _var = 1; \ @@ -148,7 +151,7 @@ static void check_internal_connections(Display *dpy) static PendingRequest *append_pending_request(Display *dpy, unsigned long sequence) { PendingRequest *node = malloc(sizeof(PendingRequest)); - assert(node); + assert(node!=NULL); node->next = NULL; node->sequence = sequence; node->reply_waiter = 0; |