fix missing includes of <X11/Xfuncproto.h>

Several places using _X_ATTRIBUTE_PRINTF macro from X11/Xfuncproto.h
but missing to include it, so it depends on other headers whether it's
included by mere accident, which quickly causes trouble if include order
changes. Cleaning that up by adding explicit include statements.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1580>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-02-26 17:33:45 +01:00
committed by Marge Bot
parent 522f469fe9
commit b30edf326b
15 changed files with 25 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ SOFTWARE.
#include <time.h>
#endif
#include <X11/Xfuncproto.h>
#define SCREEN_SAVER_ON 0
#define SCREEN_SAVER_OFF 1
#define SCREEN_SAVER_FORCER 2