freebsd-ports/editors/madedit/files/patch-charset-detector__src__prmem.h
Xin LI be73385ad8 madedit makes use of hidden symbol feature of gcc while our system header
don't like it.  The recent addition of hidden symbol feature have exposed
this issue.

This is a minimal set of change that makes it work.

Pointed out by:	tinderbox via miwi and pav
2011-03-23 00:04:29 +00:00

12 lines
347 B
C

--- ./charset-detector/src/prmem.h.orig 2011-03-22 16:53:02.938216470 -0700
+++ ./charset-detector/src/prmem.h 2011-03-22 16:53:03.708221682 -0700
@@ -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)
{