Bug 1642885 - Detect libc for OTR on BSD. r=kaie a=wsmwk
authorPatrick Cloke <clokep@gmail.com>
Thu, 04 Jun 2020 07:51:39 -0400
changeset 39371 c240eda98256c916972e5046f58afe918535d68f
parent 39370 dc0652c2892f0992de0a36f763823011e10d7320
child 39372 b4100c89ec6ca895afce0a16e1e08968de4850a6
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewerskaie, wsmwk
bugs1642885
Bug 1642885 - Detect libc for OTR on BSD. r=kaie a=wsmwk
chat/modules/CLib.jsm
--- a/chat/modules/CLib.jsm
+++ b/chat/modules/CLib.jsm
@@ -23,16 +23,20 @@ switch (OS) {
   case "winnt":
     libcAbi = ctypes.winapi_abi;
     libcPath = ctypes.libraryName("msvcrt");
     strdup = "_strdup";
     fopen = "_wfopen";
     fname_t = wchar_t.ptr;
     break;
   case "darwin":
+  case "dragonfly":
+  case "freebsd":
+  case "netbsd":
+  case "openbsd":
     libcAbi = ctypes.default_abi;
     libcPath = ctypes.libraryName("c");
     break;
   case "linux":
     libcAbi = ctypes.default_abi;
     libcPath = "libc.so.6";
     break;
   default: