summaryrefslogtreecommitdiff
path: root/mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm')
-rw-r--r--mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm b/mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm
new file mode 100644
index 000000000000..e54a883a82f9
--- /dev/null
+++ b/mail/thunderbird/files/patch-comm_mail_modules_DNS.jsm
@@ -0,0 +1,25 @@
+--- comm/mail/modules/DNS.jsm.orig 2021-12-12 21:21:31.875731000 +0100
++++ comm/mail/modules/DNS.jsm 2021-12-12 22:31:04.895700000 +0100
+@@ -38,11 +38,17 @@
+ _open() {
+ function findLibrary() {
+ let lastException = null;
+- let candidates = [
+- { name: "resolv.9", suffix: "" },
+- { name: "resolv", suffix: ".2" },
+- { name: "resolv", suffix: "" },
+- ];
++ if(Services.appinfo.OS.toLowerCase() == "freebsd") {
++ let candidates = [
++ { name: "c", suffix: ".7" },
++ ]
++ } else {
++ let candidates = [
++ { name: "resolv.9", suffix: "" },
++ { name: "resolv", suffix: ".2" },
++ { name: "resolv", suffix: "" },
++ ];
++ }
+ let tried = [];
+ for (let candidate of candidates) {
+ try {