summaryrefslogtreecommitdiffstats
path: root/libelf/libelfP.h
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/libelfP.h')
-rw-r--r--libelf/libelfP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/libelfP.h b/libelf/libelfP.h
index 7dfd8dd3..c90e8954 100644
--- a/libelf/libelfP.h
+++ b/libelf/libelfP.h
@@ -626,7 +626,7 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len)
/* Align offset to 4 bytes as needed for note name and descriptor data. */
#define NOTE_ALIGN(n) (((n) + 3) & -4U)
-#ifdef NDEBUG
+#if defined NDEBUG || !defined USE_TLS
# define LIBELF_CHECKED_LOCK(V, S) ((void)(V))
#else
/* Checked locking primitives. Prints out an error to stderr if the