]> git.kaiwu.me - nginx.git/commitdiff
Fixed compilation with -DNGX_DEBUG_MALLOC on FreeBSD 10.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 23 May 2012 15:07:01 +0000 (15:07 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 23 May 2012 15:07:01 +0000 (15:07 +0000)
After jemalloc 3.0.0 import there is no _malloc_options symbol, it has
been replaced with the malloc_conf one with a different syntax.

src/os/unix/ngx_freebsd_init.c

index 57af44a20cfb96f92139918ab49c1044a27b6ad4..aeeceaf25656419b8b2d2aa547cd3d25c1238669 100644 (file)
@@ -76,9 +76,9 @@ ngx_debug_init()
 {
 #if (NGX_DEBUG_MALLOC)
 
-#if __FreeBSD_version >= 500014
+#if __FreeBSD_version >= 500014 && __FreeBSD_version < 1000011
     _malloc_options = "J";
-#else
+#elif __FreeBSD_version < 500014
     malloc_options = "J";
 #endif