+2008-08-15 Ulrich Drepper <drepper@redhat.com>
+
+ * libelfP.h (LIBELF_CHECKED_LOCK): Use dummy definition also if
+ USE_TLS is not defined.
+
2008-08-05 Petr Machata <pmachata@redhat.com>
* elf_getdata.c, libelfP.h (__elf_getdata_internal):
/* 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