diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 23:44:28 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-02 23:44:28 +0100 |
commit | 86d5b43634dfb16aca5d03e4df2e047bfa500899 (patch) | |
tree | ba433e258c5a05cee5aa2239c790b52fe84b1948 /libports | |
parent | 4370c33bccc2ef5bddacbd364270aa310f89c94d (diff) |
Fix dead name notification in static binaries
When linking statically, the libports definition would come before the
libdiskfs definition, defeating the purpose of the ports_dead_name
callback.
* libports/dead-name.c (ports_dead_name): Rename into __ports_dead_name.
(ports_dead_name): Add weak alias for __ports_dead_name.
Diffstat (limited to 'libports')
-rw-r--r-- | libports/dead-name.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/dead-name.c b/libports/dead-name.c index de89ba6b..8c8029fc 100644 --- a/libports/dead-name.c +++ b/libports/dead-name.c @@ -22,7 +22,8 @@ #include <mach/notify.h> void -ports_dead_name (void *notify, mach_port_t dead_name) +__ports_dead_name (void *notify, mach_port_t dead_name) { ports_interrupt_notified_rpcs (notify, dead_name, MACH_NOTIFY_DEAD_NAME); } +weak_alias (__ports_dead_name, ports_dead_name); |