From: Jan Grulich Date: Wed, 27 Jun 2018 11:13:46 +0000 (+0200) Subject: Avoid error/warning about implicit function declaration X-Git-Tag: v1.9.0~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=423e04fced48ab79950f0bb4b651ff816c183b07;p=tigervnc.git 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) --- 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 #include #include "scrnintstr.h" +#if XORG >= 120 +#include "glx_extinit.h" +#endif #include "servermd.h" #include "fb.h" #include "mi.h"