mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
17 lines
725 B
C++
17 lines
725 B
C++
$NetBSD: patch-toolkit_mozapps_update_updater_updater.cpp,v 1.3 2014/02/20 13:19:03 ryoon Exp $
|
|
|
|
--- toolkit/mozapps/update/updater/updater.cpp.orig 2013-08-20 13:38:52.000000000 +0000
|
|
+++ toolkit/mozapps/update/updater/updater.cpp
|
|
@@ -123,7 +123,10 @@ static bool sUseHardLinks = true;
|
|
// declare it here to avoid including that entire header file.
|
|
#define BZ2_CRC32TABLE_UNDECLARED
|
|
|
|
-#if MOZ_IS_GCC
|
|
+#if defined(__clang__)
|
|
+extern "C" __attribute__((visibility("default"))) unsigned int BZ2_crc32Table[256];
|
|
+#undef BZ2_CRC32TABLE_UNDECLARED
|
|
+#elif MOZ_IS_GCC
|
|
#if MOZ_GCC_VERSION_AT_LEAST(3, 3, 0)
|
|
extern "C" __attribute__((visibility("default"))) unsigned int BZ2_crc32Table[256];
|
|
#undef BZ2_CRC32TABLE_UNDECLARED
|