head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2012.09.10.19.19.32;	author beat;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 304053 on 2012-09-10 19:19:32Z by beat

- Move libxul 1.9.2 to www/libxul19
- 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
@
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);
@
