From: Samuel Thibault Date: Thu, 10 May 2012 20:10:21 +0000 (-0700) Subject: Hurd: Hurd: dl-sysdep.c: Include code only #ifdef SHARED. X-Git-Tag: glibc-2.16-tps~417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd9fa98583b51812e906f1e85cc6e370bb4aff87;p=platform%2Fupstream%2Fglibc.git Hurd: Hurd: dl-sysdep.c: Include code only #ifdef SHARED. --- diff --git a/ChangeLog b/ChangeLog index 83afde7..cab0489 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2012-05-10 Samuel Thibault + * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED]. + * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/ HURD_CRITICAL_END around holding _hurd_dtable_lock. * sysdeps/mach/hurd/dirfd (dirfd): Likewise. diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 26a212e..13b0010 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -16,6 +16,10 @@ License along with the GNU C Library; if not, see . */ +/* In the static library, this is all handled by dl-support.c + or by the vanilla definitions in the rest of the C library. */ +#ifdef SHARED + #include #include #include @@ -667,3 +671,5 @@ _dl_init_first (int argc, ...) { /* This no-op definition only gets used if libc is not linked in. */ } + +#endif /* SHARED */