diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-09 15:38:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-09 15:38:52 +0000 |
commit | 1a02b00fea3c82992f4d569b2da718575f9faeca (patch) | |
tree | 1870583c1ce67900fc1d12286d036b06f32e00e0 /main/irssi/irssi-0.8.15-no-static-unload.patch | |
parent | 9ecceb392defa9eea772a4da82f24909c9b108ea (diff) | |
download | aports-1a02b00fea3c82992f4d569b2da718575f9faeca.tar.bz2 aports-1a02b00fea3c82992f4d569b2da718575f9faeca.tar.xz |
main/irssi: upgrade to 0.8.17
Diffstat (limited to 'main/irssi/irssi-0.8.15-no-static-unload.patch')
-rw-r--r-- | main/irssi/irssi-0.8.15-no-static-unload.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/main/irssi/irssi-0.8.15-no-static-unload.patch b/main/irssi/irssi-0.8.15-no-static-unload.patch deleted file mode 100644 index c583f1c372..0000000000 --- a/main/irssi/irssi-0.8.15-no-static-unload.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- irssi-0.8.15/src/fe-common/core/fe-modules.c.old 2010-04-03 18:19:24.000000000 +0200 -+++ irssi-0.8.15/src/fe-common/core/fe-modules.c 2010-10-12 14:43:52.586315553 +0200 -@@ -195,6 +195,8 @@ - MODULE_FILE_REC *file; - char *rootmodule, *submodule; - void *free_arg; -+ GSList *tmp; -+ int all_dynamic; - - g_return_if_fail(data != NULL); - -@@ -204,12 +206,19 @@ - - module = module_find(rootmodule); - if (module != NULL) { -- if (*submodule == '\0') -- module_unload(module); -+ if (*submodule == '\0') { -+ all_dynamic = 1; -+ for (tmp = module->files; tmp != NULL; tmp = tmp->next) -+ all_dynamic &= !MODULE_IS_STATIC((MODULE_FILE_REC*) tmp->data); -+ if (all_dynamic) -+ module_unload(module); -+ } - else { - file = module_file_find(module, submodule); -- if (file != NULL) -- module_file_unload(file); -+ if (file != NULL) { -+ if (!MODULE_IS_STATIC(file)) -+ module_file_unload(file); -+ } - else - module = NULL; - } |