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>
This commit is contained in:
kamil 2018-01-05 17:54:31 +00:00
parent 5236f0d558
commit b3babee32b
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
|*
\*===----------------------------------------------------------------------===*/
#ifdef _LIBC
#include "namespace.h"
#endif
#include "InstrProfilingUtil.h"
#include <errno.h>