Fix fuzzing compilation

This commit is contained in:
project-repo 2020-11-16 21:25:07 +01:00
commit e79d5dee3a
2 changed files with 12 additions and 4 deletions

View file

@ -59,6 +59,14 @@
#include "fuzz-lib.h"
struct cg_server server;
struct wlr_xdg_shell *xdg_shell;
struct wlr_xwayland *xwayland;
#if CG_HAS_XWAYLAND
struct wlr_xcursor_manager *xcursor_manager;
#endif
static bool
drop_permissions(void) {
if(getuid() != geteuid() || getgid() != getegid()) {

View file

@ -17,12 +17,12 @@
#define WAIT_ANY -1
#endif
struct cg_server server;
struct wlr_xdg_shell *xdg_shell;
extern struct cg_server server;
extern struct wlr_xdg_shell *xdg_shell;
struct wlr_xwayland *xwayland;
extern struct wlr_xwayland *xwayland;
#if CG_HAS_XWAYLAND
struct wlr_xcursor_manager *xcursor_manager;
extern struct wlr_xcursor_manager *xcursor_manager;
#endif
void