Systemd/src/shared/enable-mempool.c
Zbigniew Jędrzejewski-Szmek a5d8835c78 mempool: only enable mempool use when linked to libsystemd-shared.so
Mempool use is enabled or disabled based on the mempool_use_allowed symbol that
is linked in.

Should fix assert crashes in external programs caused by #9792.
Replaces #10286.

v2:
- use two different source files instead of a gcc constructor
2018-10-11 11:10:37 +02:00

6 lines
103 B
C

/* SPDX-License-Identifier: LGPL-2.1+ */
#include "mempool.h"
const bool mempool_use_allowed = true;