From: Lionel Sambuc Date: Mon, 14 Apr 2014 09:49:40 +0000 (+0200) Subject: Follow the namespace pattern for [cs]profile X-Git-Tag: v3.3.0~366 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-settime.html?a=commitdiff_plain;h=f86720112c5ba5cf8f0a6ad295817662bc827614;p=minix.git Follow the namespace pattern for [cs]profile Change-Id: I5ad7eb1d7f4b4364e668c2f30dfc628f89b0d579 --- diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 6cef1f7af..fc681deb2 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -910,8 +910,12 @@ #define __learn_tree ___learn_tree #if defined(__minix) +#define cprofile _cprofile /* LSC: Is this really needed? */ +#define sprofile _sprofile /* LSC: Is this really needed? */ + /* Needed to allow RS and VM to provide their own implementations. */ #define munmap _munmap + #endif /* defined(__minix) */ #endif /* __weak_alias */ #endif /* !__lint__ */ diff --git a/lib/libc/sys-minix/cprofile.c b/lib/libc/sys-minix/cprofile.c index 7d569af1f..512d42405 100644 --- a/lib/libc/sys-minix/cprofile.c +++ b/lib/libc/sys-minix/cprofile.c @@ -2,7 +2,6 @@ #include "namespace.h" #ifdef __weak_alias -#define cprofile _cprofile __weak_alias(cprofile, _cprofile) #endif diff --git a/lib/libc/sys-minix/sprofile.c b/lib/libc/sys-minix/sprofile.c index cfbb9c671..ad04309b0 100644 --- a/lib/libc/sys-minix/sprofile.c +++ b/lib/libc/sys-minix/sprofile.c @@ -2,7 +2,6 @@ #include "namespace.h" #ifdef __weak_alias -#define sprofile _sprofile __weak_alias(sprofile, _sprofile) #endif