diff --git a/Makefile b/Makefile
index b833a3f..239f4f2 100644
a
|
b
|
INSTALLDIR ?= $(moduledir)/imap |
7 | 7 | # Kill CFLAGS from dovecot-config |
8 | 8 | CFLAGS := $(CFLAGSORIG) |
9 | 9 | |
| 10 | MACOSX_DEPLOYMENT_TARGET := 10.3 |
| 11 | |
10 | 12 | # includes/flags we need for building a dovecot plugin |
11 | 13 | INCS += -DHAVE_CONFIG_H |
12 | 14 | INCS += -I$(DOVECOT)/ |
… |
… |
objs += signature.o |
56 | 58 | endif |
57 | 59 | |
58 | 60 | # main make rules |
59 | | CFLAGS += -fPIC -shared -Wall -Wextra -DPLUGINNAME=$(PLUGINNAME) |
| 61 | CFLAGS += -fPIC -dynamiclib -fno-common -undefined dynamic_lookup -Wall -Wextra -DPLUGINNAME=$(PLUGINNAME) |
60 | 62 | CC ?= cc |
61 | 63 | HOSTCC ?= cc |
62 | 64 | |
diff --git a/antispam-plugin.c b/antispam-plugin.c
index 455668d..45443bf 100644
a
|
b
|
extern void (*hook_mail_storage_created)(struct mail_storage *storage); |
41 | 41 | /* internal stuff we need */ |
42 | 42 | #include "antispam-plugin.h" |
43 | 43 | |
| 44 | void (*antispam_next_hook_mail_storage_created)(struct mail_storage *storage); |
| 45 | |
44 | 46 | /* macro since only needed for dovecot 1.1 */ |
45 | 47 | PLUGIN_ID; |
46 | 48 | |
diff --git a/antispam-plugin.h b/antispam-plugin.h
index fd8783a..f38f9d5 100644
a
|
b
|
static inline void debug_verbose(const char *fmt __attribute__((unused)), ...) |
70 | 70 | #endif |
71 | 71 | |
72 | 72 | void antispam_mail_storage_created(struct mail_storage *storage); |
73 | | void (*antispam_next_hook_mail_storage_created)(struct mail_storage *storage); |
| 73 | extern void (*antispam_next_hook_mail_storage_created)(struct mail_storage *storage); |
74 | 74 | bool mailbox_is_spam(struct mailbox *box); |
75 | 75 | bool mailbox_is_trash(struct mailbox *box); |
76 | 76 | bool mailbox_is_unsure(struct mailbox *box); |
77 | 77 | const char *get_setting(const char *name); |
78 | | bool antispam_can_append_to_spam; |
| 78 | extern bool antispam_can_append_to_spam; |
79 | 79 | bool keyword_is_spam(const char *keyword); |
80 | 80 | |
81 | 81 | extern bool need_keyword_hook; |