This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] NaCl: Fix glob.c build after getlogin_r -> __getlogin_r.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Wed, 24 Jun 2015 15:30:48 -0700 (PDT)
- Subject: [COMMITTED PATCH] NaCl: Fix glob.c build after getlogin_r -> __getlogin_r.
- Authentication-results: sourceware.org; auth=none
2015-06-24 Roland McGrath <roland@hack.frob.com>
* sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
(__getlogin_r): ... this.
diff --git a/sysdeps/nacl/glob.c b/sysdeps/nacl/glob.c
index 36d62e8..eda6e9e 100644
--- a/sysdeps/nacl/glob.c
+++ b/sysdeps/nacl/glob.c
@@ -16,11 +16,11 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#include <unistd.h> /* Declares getlogin_r. */
+#include <unistd.h> /* Declares __getlogin_r. */
/* We do not have getlogin_r in the library at all for NaCl.
Define it away so the glob code does not try to use it. */
-#define getlogin_r(name, len) (ENOSYS)
+#define __getlogin_r(name, len) (ENOSYS)
/* Fetch the version that defines glob64 as an alias. */
#include <sysdeps/wordsize-64/glob.c>