From e79d5dee3ac743d3361db5fdd5b462959ec61428 Mon Sep 17 00:00:00 2001 From: project-repo Date: Mon, 16 Nov 2020 21:25:07 +0100 Subject: [PATCH] Fix fuzzing compilation --- fuzz/fuzz-lib.c | 8 ++++++++ fuzz/fuzz-lib.h | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fuzz/fuzz-lib.c b/fuzz/fuzz-lib.c index e99a21f..a32e062 100644 --- a/fuzz/fuzz-lib.c +++ b/fuzz/fuzz-lib.c @@ -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()) { diff --git a/fuzz/fuzz-lib.h b/fuzz/fuzz-lib.h index 0ea499b..7182a50 100644 --- a/fuzz/fuzz-lib.h +++ b/fuzz/fuzz-lib.h @@ -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