mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-07 05:18:29 +02:00
os: include <assert.h> in ospoll.c
Fixes build failure in mingw-cross-build:
../os/ospoll.c: In function ‘ospoll_destroy’:
../os/ospoll.c:266:9: error: implicit declaration of function ‘assert’
[-Werror=implicit-function-declaration]
266 | assert (ospoll->num == 0);
| ^~~~~~
../os/ospoll.c:59:1: note: ‘assert’ is defined in header ‘<assert.h>’;
did you forget to ‘#include <assert.h>’?
58 | #include "xserver_poll.h"
+++ |+#include <assert.h>
59 | #define POLL 1
../os/ospoll.c:266:9: warning: nested extern declaration of ‘assert’
[-Wnested-externs]
266 | assert (ospoll->num == 0);
| ^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit 7f8570bfa1)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2146>
This commit is contained in:
parent
cc3a8739eb
commit
447fec7d5e
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "misc.h" /* for typedef of pointer */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue