mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 07:00:05 +01:00
build: fix redefinition of VALGRIND define in "nm-sd-adapt-shared.h"
When configuring with sanitizers enabled, ./configure.ac sets -DVALGRIND=1 in the CFLAGS. This causes a compilation error later: $ /bin/sh ./libtool --tag=CC --mode=compile gcc ... -DVALGRIND=1 ... src/dhcp/nm-dhcp-nettools.c ... In file included from src/dhcp/nm-dhcp-nettools.c:16: ./shared/systemd/sd-adapt-shared/nm-sd-adapt-shared.h:73: error: "VALGRIND" redefined [-Werror] #define VALGRIND 0
This commit is contained in:
parent
801c895aa6
commit
3c581cbb78
1 changed files with 2 additions and 0 deletions
|
|
@ -70,7 +70,9 @@ G_STMT_START { \
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef VALGRIND
|
||||||
#define VALGRIND 0
|
#define VALGRIND 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ENABLE_DEBUG_HASHMAP 0
|
#define ENABLE_DEBUG_HASHMAP 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue