forked from Lainports/freebsd-ports
- Update www/libxul to 10.0.7 - Update all dependent ports to use www/libxul19 (no functional changes) - Bump PORTREVISION on ports where libxul is a run dependency as the resulting package will change. Submitted by: Jan Beich <jbeich@tormail.org> With hat: gecko
21 lines
650 B
Text
21 lines
650 B
Text
--- memory/mozalloc/mozalloc.cpp~
|
|
+++ memory/mozalloc/mozalloc.cpp
|
|
@@ -52,6 +52,9 @@
|
|
#if defined(XP_UNIX)
|
|
# include <unistd.h> // for valloc on *BSD
|
|
#endif //if defined(XP_UNIX)
|
|
+#ifdef __FreeBSD__
|
|
+# include <malloc_np.h> // for malloc_usable_size
|
|
+#endif
|
|
|
|
#if defined(MOZ_MEMORY)
|
|
// jemalloc.h doesn't redeclare symbols if they're provided by the OS
|
|
@@ -259,7 +262,7 @@ moz_malloc_usable_size(void *ptr)
|
|
|
|
#if defined(XP_MACOSX)
|
|
return malloc_size(ptr);
|
|
-#elif defined(MOZ_MEMORY)
|
|
+#elif defined(MOZ_MEMORY) || defined(__FreeBSD__)
|
|
return malloc_usable_size(ptr);
|
|
#elif defined(XP_WIN)
|
|
return _msize(ptr);
|