Merge "Ignore all __weak_alias in OpenBSD libC."
This commit is contained in:
commit
cc4259ed92
@ -34,10 +34,6 @@
|
|||||||
__asm__(".global " #alias "\n" \
|
__asm__(".global " #alias "\n" \
|
||||||
#alias " = " #sym);
|
#alias " = " #sym);
|
||||||
|
|
||||||
#define __weak_alias(alias,sym) \
|
|
||||||
__asm__(".weak " #alias "\n" \
|
|
||||||
#alias " = " #sym);
|
|
||||||
|
|
||||||
/* We use __warnattr instead of __warn_references.
|
/* We use __warnattr instead of __warn_references.
|
||||||
* TODO: remove this and put an empty definition in one of the upstream-* compatibility headers.
|
* TODO: remove this and put an empty definition in one of the upstream-* compatibility headers.
|
||||||
*/
|
*/
|
||||||
|
@ -17,11 +17,6 @@
|
|||||||
#ifndef _BIONIC_NETBSD_NAMESPACE_H_included
|
#ifndef _BIONIC_NETBSD_NAMESPACE_H_included
|
||||||
#define _BIONIC_NETBSD_NAMESPACE_H_included
|
#define _BIONIC_NETBSD_NAMESPACE_H_included
|
||||||
|
|
||||||
// NetBSD uses __weak_alias on a lot of functions. We don't want that.
|
|
||||||
#if defined(__weak_alias)
|
|
||||||
#undef __weak_alias
|
|
||||||
#endif
|
|
||||||
|
|
||||||
__LIBC_HIDDEN__ int __res_enable_mt(void);
|
__LIBC_HIDDEN__ int __res_enable_mt(void);
|
||||||
__LIBC_HIDDEN__ int __res_disable_mt(void);
|
__LIBC_HIDDEN__ int __res_disable_mt(void);
|
||||||
|
|
||||||
|
@ -32,6 +32,9 @@
|
|||||||
#define _warn warn
|
#define _warn warn
|
||||||
#define _warnx warnx
|
#define _warnx warnx
|
||||||
|
|
||||||
|
/* Ignore all __weak_alias in OpenBSD. */
|
||||||
|
#define __weak_alias(alias,sym)
|
||||||
|
|
||||||
/* OpenBSD's <ctype.h> uses these names, which conflicted with stlport.
|
/* OpenBSD's <ctype.h> uses these names, which conflicted with stlport.
|
||||||
* Additionally, we changed the numeric/digit type from N to D for libcxx.
|
* Additionally, we changed the numeric/digit type from N to D for libcxx.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user