fix FTBS on bool

Fix name clash between stdbool.h and xf86str.h

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/9>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-06-06 10:46:09 +02:00
parent 4653800f83
commit ec4bc6b8e9

View File

@@ -42,6 +42,13 @@
#ifndef _VBOXVIDEO_H_
#define _VBOXVIDEO_H_
/* these *must* come before anything else that might include stdbool.h,
otherwise we're running into trouble with older X headers (up to 1.20)
using "bool" as field name */
#include "xf86.h"
#include "xf86str.h"
#include "xf86Cursor.h"
#include <VBoxVideoGuest.h>
#include <VBoxVideo.h>
#include "version-generated.h"
@@ -59,9 +66,6 @@
#include "config.h"
#endif
#include "xf86.h"
#include "xf86str.h"
#include "xf86Cursor.h"
#ifdef DEBUG