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

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: fix wrong c++ lib 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
« no previous file with comments | « ports/glibc-compat/src/herror.c ('k') | ports/glibc-compat/src/openat.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c218ee462e4d6f80879d97fdf55df2ce0294b4f..c98c52eddd0c9fa3e0a57cea590ad73becc2fcfb 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,8 +19,9 @@
#define DL_CALL_FCT(x,y) x y
#define attribute_hidden
#define internal_function
-
#define __set_errno(x) (errno = (x))
+#define weak_alias(name, aliasname) _weak_alias (name, aliasname)
+#define _weak_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
#endif
-
« no previous file with comments | « ports/glibc-compat/src/herror.c ('k') | ports/glibc-compat/src/openat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698