Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: ports/glibc-compat/src/libc-symbols.h

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
-

Powered by Google App Engine
This is Rietveld 408576698