diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-06-27 13:13:46 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-06-28 13:27:29 +0200 |
commit | 423e04fced48ab79950f0bb4b651ff816c183b07 (patch) | |
tree | 9eae62c62c490b1dc655428eee73a92fdb96e96e | |
parent | beedf28299e6f917b00dd2216e03d3ae99c0be52 (diff) | |
download | tigervnc-423e04fced48ab79950f0bb4b651ff816c183b07.tar.gz tigervnc-423e04fced48ab79950f0bb4b651ff816c183b07.zip |
Avoid error/warning about implicit function declaration
Function xorgGlxCreateVendor() is defined in glx_extinit.h, if this header is
not included, we might get either error or warning. This header also need to
be included after scrninststr.h header as it defines some structures used
in glx_extinit.h
(cherry picked from commit 8c6c584377feba0e3b99eecb3ef33b28cee318cb)
-rw-r--r-- | unix/xserver/hw/vnc/xvnc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c index 88a5e422..9dd4e1c6 100644 --- a/unix/xserver/hw/vnc/xvnc.c +++ b/unix/xserver/hw/vnc/xvnc.c @@ -47,6 +47,9 @@ from the X Consortium. #include <X11/Xproto.h> #include <X11/Xos.h> #include "scrnintstr.h" +#if XORG >= 120 +#include "glx_extinit.h" +#endif #include "servermd.h" #include "fb.h" #include "mi.h" |