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