comparison src/os/unix/ngx_freebsd_init.c @ 4645:f329a1d2127b

Fixed compilation with -DNGX_DEBUG_MALLOC on FreeBSD 10. 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.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 23 May 2012 15:07:01 +0000
parents d620f497c50f
children 15a7deeaa19a
comparison
equal deleted inserted replaced
4644:95763fce86a8 4645:f329a1d2127b
74 void 74 void
75 ngx_debug_init() 75 ngx_debug_init()
76 { 76 {
77 #if (NGX_DEBUG_MALLOC) 77 #if (NGX_DEBUG_MALLOC)
78 78
79 #if __FreeBSD_version >= 500014 79 #if __FreeBSD_version >= 500014 && __FreeBSD_version < 1000011
80 _malloc_options = "J"; 80 _malloc_options = "J";
81 #else 81 #elif __FreeBSD_version < 500014
82 malloc_options = "J"; 82 malloc_options = "J";
83 #endif 83 #endif
84 84
85 ngx_debug_malloc = 1; 85 ngx_debug_malloc = 1;
86 86