Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/compiler_rt/dist/lib/profile Include namesp...
details: https://anonhg.NetBSD.org/src/rev/81d818e5ebd1
branches: trunk
changeset: 828823:81d818e5ebd1
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Jan 05 17:54:31 2018 +0000
description:
Include namespace.h in GCDAProfiling.c (compiler_rt)
The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.
This change eliminates usage of the global name of the following symbols:
- fdopen -> _fdopen
- mmap -> _mmap
- strdup -> _strdup
Sponsored by <The NetBSD Foundation>
diffstat:
sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r bf61b60e2bbb -r 81d818e5ebd1 sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c
--- a/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c Fri Jan 05 17:52:06 2018 +0000
+++ b/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c Fri Jan 05 17:54:31 2018 +0000
@@ -20,6 +20,10 @@
|*
\*===----------------------------------------------------------------------===*/
+#ifdef _LIBC
+#include "namespace.h"
+#endif
+
#include "InstrProfilingUtil.h"
#include <errno.h>
Home |
Main Index |
Thread Index |
Old Index