From 8c6c584377feba0e3b99eecb3ef33b28cee318cb Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 27 Jun 2018 13:13:46 +0200 Subject: [PATCH] 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 --- unix/xserver/hw/vnc/xvnc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c index 9000e4b3..3b4d2f31 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" -- 2.39.5