diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-07 22:38:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-07 22:38:44 +0100 |
commit | aee782c192aedc7485c4b2994ff8ad59e72cce78 (patch) | |
tree | 3fb1acb013570c9893c6f67895080df2430a8389 /src/client | |
parent | b0cfe2f7a8cd1e15c6eb199aa35e22adbf813786 (diff) | |
download | rspamd-aee782c192aedc7485c4b2994ff8ad59e72cce78.tar.gz rspamd-aee782c192aedc7485c4b2994ff8ad59e72cce78.zip |
[Minor] Fix compile issues
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamc.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 08e35013e..0c4c2663f 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -1810,7 +1810,11 @@ rspamc_process_dir(struct ev_loop *ev_base, const struct rspamc_command &cmd, auto **ex = exclude_compiled; auto skip = false; while (ex != nullptr && *ex != nullptr) { +#if GLIB_MAJOR_VERSION >= 2 && GLIB_MINOR_VERSION >= 70 if (g_pattern_spec_match(*ex, fpath.size(), fpath.c_str(), nullptr)) { +#else + if (g_pattern_match(*ex, fpath.size(), fpath.c_str(), nullptr)) { +#endif skip = true; break; } |