Skip to content

Commit

Permalink
Use LSAN top level header file
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 20, 2018
1 parent 69e7e05 commit 9149d2d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -7520,7 +7520,7 @@ for ac_header in \
prot.h \
pwd.h \
resource.h \
sanitizer/common_interface_defs.h \
sanitizer/lsan_interface.h \
semaphore.h \
sia.h \
siad.h \
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -789,7 +789,7 @@ AC_CHECK_HEADERS( \
prot.h \
pwd.h \
resource.h \
sanitizer/common_interface_defs.h \
sanitizer/lsan_interface.h \
semaphore.h \
sia.h \
siad.h \
Expand Down
5 changes: 2 additions & 3 deletions src/include/autoconf.h.in
Expand Up @@ -356,9 +356,8 @@
/* Define to 1 if you have the <resource.h> header file. */
#undef HAVE_RESOURCE_H

/* Define to 1 if you have the <sanitizer/common_interface_defs.h> header
file. */
#undef HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H
/* Define to 1 if you have the <sanitizer/lsan_interface.h> header file. */
#undef HAVE_SANITIZER_LSAN_INTERFACE_H

/* Define to 1 if you have the <semaphore.h> header file. */
#undef HAVE_SEMAPHORE_H
Expand Down
6 changes: 3 additions & 3 deletions src/lib/util/debug.c
Expand Up @@ -116,11 +116,11 @@ static TALLOC_CTX *talloc_autofree_ctx;
# include <sys/capability.h>
# endif

#ifdef HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H
# include <sanitizer/common_interface_defs.h>
#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H
# include <sanitizer/lsan_interface.h>
#endif

#ifdef HAVE_SANITIZER_COMMON_INTERFACE_DEFS_H
#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H
static int lsan_test_pipe[2] = {-1, -1};
static int lsan_test_pid = -1;
static int lsan_state = INT_MAX;
Expand Down
1 change: 1 addition & 0 deletions src/modules/rlm_python/rlm_python.c
Expand Up @@ -32,6 +32,7 @@ RCSID("$Id$")
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/lsan.h>

#include <Python.h>
#include <dlfcn.h>
Expand Down

0 comments on commit 9149d2d

Please sign in to comment.