Index: ports/glibc-compat/src/libc-symbols.h |
diff --git a/ports/glibc-compat/src/libc-symbols.h b/ports/glibc-compat/src/libc-symbols.h |
index 1df7c49fac3ccd2258428ae0736690ad3ffb4a8f..9adb6ccf8b47f80cd426ac897f9da9d3e6ec2d7c 100644 |
--- a/ports/glibc-compat/src/libc-symbols.h |
+++ b/ports/glibc-compat/src/libc-symbols.h |
@@ -1,3 +1,8 @@ |
+/* |
+ * Copyright 2015 The Native Client Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
#ifndef _LIBC_SYMBOLS_H |
#define _LIBC_SYMBOLS_H 1 |
@@ -14,7 +19,8 @@ |
#define DL_CALL_FCT(x,y) x y |
#define attribute_hidden |
#define internal_function |
- |
+#define weak_alias(name, aliasname) _weak_alias (name, aliasname) |
+#define _weak_alias(name, aliasname) \ |
+ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); |
#endif |
- |