OSDN Git Service

ldso: include dlfcn.h for RTLD_NODELETE
authorMike Frysinger <vapier@gentoo.org>
Sun, 18 Nov 2012 09:41:06 +0000 (04:41 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 18 Nov 2012 09:42:47 +0000 (04:42 -0500)
commitb4725d8e2cf04ffbead7721b5b43151245679262
treed805b2999a5cee4b9e63ad39d120de337abf2dc0
parent6e38a5211ede4d7795b77d7886d5f60636dc43a1
ldso: include dlfcn.h for RTLD_NODELETE

Building with NPTL enabled and shared library support disabled we hit:
In file included from libpthread/nptl/sysdeps/generic/dl-tls.c:30:0:
./ldso/include/dl-elf.h: In function '__dl_parse_dynamic_info':
./ldso/include/dl-elf.h:173:20: error: 'RTLD_NODELETE' undeclared (first use in this function)
./ldso/include/dl-elf.h:173:20: note: each undeclared identifier is reported only once for each function it appears in
make: *** [libpthread/nptl/sysdeps/generic/dl-tls.os] Error 1

A previous commit (f26c5f6952ce9bf8edec9c1571c47addb1bcc442) touched
on a similar issue, but added the include to the incorrect location.

Reported-by: Christophe Lyon <christophe.lyon@st.com> [arm nommu]
Reported-by: Daniel Beecham <daniel@lunix.se> [static x86_64]
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ldso/include/dl-elf.h
ldso/include/ldso.h