From 98af1ee19564fcfe519d64caf893d96977848d6a Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Thu, 3 Mar 2011 16:44:18 +0000 Subject: [PATCH] NBSD libc: fix forgot weak_alias This patch add a few weak_alias forgotten, so that non-internal symbols are defined to be used from application. Modifying only the minix-specific part, this patch needs no update to minix-port.patch. --- lib/nbsd_libc/gen/minix/getdomainname.c | 5 +++++ lib/nbsd_libc/sys-minix/bind.c | 4 ++++ lib/nbsd_libc/sys-minix/chown.c | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/lib/nbsd_libc/gen/minix/getdomainname.c b/lib/nbsd_libc/gen/minix/getdomainname.c index 8da6942ba..5d70f41f0 100644 --- a/lib/nbsd_libc/gen/minix/getdomainname.c +++ b/lib/nbsd_libc/gen/minix/getdomainname.c @@ -2,10 +2,15 @@ * 2 Dec 1994 */ #define nil 0 +#include "namespace.h" #include #include #include +#ifdef __weak_alias +__weak_alias(getdomainname, _getdomainname) +#endif + int getdomainname(char *domain, size_t size) { char nodename[256]; diff --git a/lib/nbsd_libc/sys-minix/bind.c b/lib/nbsd_libc/sys-minix/bind.c index ef8d196fb..b8ceb8984 100644 --- a/lib/nbsd_libc/sys-minix/bind.c +++ b/lib/nbsd_libc/sys-minix/bind.c @@ -1,6 +1,10 @@ #include #include "namespace.h" +#ifdef __weak_alias +__weak_alias(bind, _bind) +#endif + #include #include #include diff --git a/lib/nbsd_libc/sys-minix/chown.c b/lib/nbsd_libc/sys-minix/chown.c index d292677ad..3af36961c 100644 --- a/lib/nbsd_libc/sys-minix/chown.c +++ b/lib/nbsd_libc/sys-minix/chown.c @@ -5,6 +5,10 @@ #include #include +#ifdef __weak_alias +__weak_alias(chown, _chown) +#endif + PUBLIC int chown(const char *name, uid_t owner, gid_t grp) { message m; -- 2.44.0