5969e71de7
`#pragma GCC visibility push(hidden)' results in free() symbol being .hidden, and linker woes. As a remedy, temporarily revert visibility to default when including this header (probably not the best way to solve the problem though). While here, pacify portlint(1) by removing hard-coded shlib ABI versions in LIB_DEPENDS. Reported by: pointyhat (via pav, erwin)
24 lines
571 B
Text
24 lines
571 B
Text
--- lib/chardetect/src/entry/impl.cpp.orig
|
|
+++ lib/chardetect/src/entry/impl.cpp
|
|
@@ -42,7 +42,9 @@
|
|
#include "nscore.h"
|
|
#include "nsUniversalDetector.h"
|
|
#include <string.h>
|
|
+#pragma GCC visibility push(default)
|
|
#include <stdlib.h>
|
|
+#pragma GCC visibility pop
|
|
|
|
#ifdef _WIN32
|
|
# include <windows.h>
|
|
--- lib/chardetect/src/prmem.h.orig
|
|
+++ lib/chardetect/src/prmem.h
|
|
@@ -37,7 +37,9 @@
|
|
#ifndef nsDummyPrmem_h__
|
|
#define nsDummyPrmem_h__
|
|
|
|
+#pragma GCC visibility push(default)
|
|
#include <stdlib.h>
|
|
+#pragma GCC visibility pop
|
|
|
|
inline void* PR_Malloc(size_t len)
|
|
{
|