Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
trees
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
trees
Commits
bf4d9ee0
Commit
bf4d9ee0
authored
1 year ago
by
proplus
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
#29
: restore old macro and rename new one
parent
14fed7d1
Branches
Branches containing commit
No related tags found
1 merge request
!16
Fixed #29: restore old macro and rename new one
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/trees-common.h
+23
-0
23 additions, 0 deletions
src/trees-common.h
with
23 additions
and
0 deletions
src/trees-common.h
+
23
−
0
View file @
bf4d9ee0
...
...
@@ -49,6 +49,29 @@
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
/* Fix dovecot's broken DOVECOT_PREREQ version detection macro */
#if !defined(DOVECOT_VERSION_MAJOR) || !defined(DOVECOT_PREREQ)
/* Version detection didn't exist before 2.1.16 */
# error "This plugin doesn't work with dovecot version below 2.1.16"
#else
/* DOVECOT_VERSION_MICRO got added in 2.3.18 */
/* In 2.3.18, the macro got broken too, so we use that for detection */
/* see https://github.com/dovecot/core/commit/31c2413 */
# if defined(DOVECOT_VERSION_MICRO)
/* re-define the macro to the old signature */
# undef DOVECOT_PREREQ
# define DOVECOT_PREREQ(maj, min) \
((DOVECOT_VERSION_MAJOR << 16) + \
DOVECOT_VERSION_MINOR >= ((maj) << 16) + (min))
/* if you want to detect micro version too, use this instead */
# define DOVECOT_PREREQ_MICRO(maj, min, micro) \
((DOVECOT_VERSION_MAJOR << 24) + \
(DOVECOT_VERSION_MINOR << 16) + \
DOVECOT_VERSION_MICRO >= \
((maj) << 24) + ((min) << 16) + (micro))
# endif
/* defined(DOVECOT_VERSION_MICRO) */
#endif
/* !defined(DOVECOT_VERSION_MAJOR) || !defined(DOVECOT_PREREQ) */
extern
const
unsigned
char
trees_header
[
3
];
int
trees_initialize
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment