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