]> Zhao Yanbai Git Server - minix.git/commitdiff
Follow the namespace pattern for [cs]profile
authorLionel Sambuc <lionel@minix3.org>
Mon, 14 Apr 2014 09:49:40 +0000 (11:49 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:22 +0000 (17:05 +0200)
Change-Id: I5ad7eb1d7f4b4364e668c2f30dfc628f89b0d579

lib/libc/include/namespace.h
lib/libc/sys-minix/cprofile.c
lib/libc/sys-minix/sprofile.c

index 6cef1f7af38a51a1102e08629e428913f11e002f..fc681deb2ea6d6e133c2023d02fae79d2e07959b 100644 (file)
 #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__ */
index 7d569af1feed2986e2abcdd607fcec51b88edd3f..512d42405ba0dbffaf698f0526010c9949c80c6b 100644 (file)
@@ -2,7 +2,6 @@
 #include "namespace.h"
 
 #ifdef __weak_alias
-#define cprofile _cprofile
 __weak_alias(cprofile, _cprofile)
 #endif
 
index cfbb9c6718683af10c9b41a737c1c6428a2c3c6a..ad04309b0a057aae36dbaf57358d1099fb983acd 100644 (file)
@@ -2,7 +2,6 @@
 #include "namespace.h"
 
 #ifdef __weak_alias
-#define sprofile _sprofile
 __weak_alias(sprofile, _sprofile)
 #endif