Module Name: src
Committed By: kamil
Date: Fri Jan 5 17:54:31 UTC 2018
Modified Files:
src/sys/external/bsd/compiler_rt/dist/lib/profile: GCDAProfiling.c
Log Message:
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>
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 \
src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c
diff -u src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c:1.1.1.5 src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c:1.2
--- src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c:1.1.1.5 Sat Feb 27 18:59:31 2016
+++ src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c Fri Jan 5 17:54:31 2018
@@ -20,6 +20,10 @@
|*
\*===----------------------------------------------------------------------===*/
+#ifdef _LIBC
+#include "namespace.h"
+#endif
+
#include "InstrProfilingUtil.h"
#include <errno.h>