| |
@@ -128,7 +128,7 @@
|
| |
#endif /* USE_SYSCONF */
|
| |
#include "slap.h"
|
| |
#include "plhash.h"
|
| |
- #if defined(LINUX)
|
| |
+ #if defined(__GLIBC__)
|
| |
#include <malloc.h>
|
| |
#endif
|
| |
#include <sys/resource.h>
|
| |
@@ -242,7 +242,7 @@
|
| |
slapi_onoff_t init_cn_uses_dn_syntax_in_dns;
|
| |
slapi_onoff_t init_global_backend_local;
|
| |
slapi_onoff_t init_enable_nunc_stans;
|
| |
- #if defined(LINUX)
|
| |
+ #if defined(__GLIBC__)
|
| |
slapi_int_t init_malloc_mxfast;
|
| |
slapi_int_t init_malloc_trim_threshold;
|
| |
slapi_int_t init_malloc_mmap_threshold;
|
| |
@@ -1115,7 +1115,7 @@
|
| |
NULL, 0,
|
| |
(void **)&global_slapdFrontendConfig.cn_uses_dn_syntax_in_dns, CONFIG_ON_OFF,
|
| |
(ConfigGetFunc)config_get_cn_uses_dn_syntax_in_dns, &init_cn_uses_dn_syntax_in_dns},
|
| |
- #if defined(LINUX)
|
| |
+ #if defined(__GLIBC__)
|
| |
{CONFIG_MALLOC_MXFAST, config_set_malloc_mxfast,
|
| |
NULL, 0,
|
| |
(void **)&global_slapdFrontendConfig.malloc_mxfast,
|
| |
@@ -1744,7 +1744,7 @@
|
| |
cfg->logging_backend = slapi_ch_strdup(SLAPD_INIT_LOGGING_BACKEND_INTERNAL);
|
| |
cfg->rootdn = slapi_ch_strdup(SLAPD_DEFAULT_DIRECTORY_MANAGER);
|
| |
init_enable_nunc_stans = cfg->enable_nunc_stans = LDAP_OFF;
|
| |
- #if defined(LINUX)
|
| |
+ #if defined(__GLIBC__)
|
| |
init_malloc_mxfast = cfg->malloc_mxfast = DEFAULT_MALLOC_UNSET;
|
| |
init_malloc_trim_threshold = cfg->malloc_trim_threshold = DEFAULT_MALLOC_UNSET;
|
| |
init_malloc_mmap_threshold = cfg->malloc_mmap_threshold = DEFAULT_MALLOC_UNSET;
|
| |
@@ -8088,7 +8088,7 @@
|
| |
return retVal;
|
| |
}
|
| |
|
| |
- #if defined(LINUX)
|
| |
+ #if defined(__GLIBC__)
|
| |
int
|
| |
config_set_malloc_mxfast(const char *attrname, char *value, char *errorbuf, int apply __attribute__((unused)))
|
| |
{
|
| |
<cert.h>
instead of<nss3/cert.h>
- pkgconfig will pick up the proper include path#ifdef LINUX
into#ifdef __GLIBC__
for malloc options so that we can build on musl