From f86720112c5ba5cf8f0a6ad295817662bc827614 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Mon, 14 Apr 2014 11:49:40 +0200 Subject: [PATCH] Follow the namespace pattern for [cs]profile Change-Id: I5ad7eb1d7f4b4364e668c2f30dfc628f89b0d579 --- lib/libc/include/namespace.h | 4 ++++ lib/libc/sys-minix/cprofile.c | 1 - lib/libc/sys-minix/sprofile.c | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) 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