diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-05-23 15:07:01 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-05-23 15:07:01 +0000 |
commit | e1133ca60e051c0fa9c7af3425b9d4b5c140f7d3 (patch) | |
tree | db9ce9882a6d5f4e85f02d775bbe7647d35a03d5 /src/os/unix/ngx_freebsd_init.c | |
parent | a272b2da28063b13657a985d69366937953abd6b (diff) | |
download | nginx-e1133ca60e051c0fa9c7af3425b9d4b5c140f7d3.tar.gz nginx-e1133ca60e051c0fa9c7af3425b9d4b5c140f7d3.zip |
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.
Diffstat (limited to 'src/os/unix/ngx_freebsd_init.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_init.c b/src/os/unix/ngx_freebsd_init.c index 57af44a20..aeeceaf25 100644 --- a/src/os/unix/ngx_freebsd_init.c +++ b/src/os/unix/ngx_freebsd_init.c @@ -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 |