This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] nptl: Add missing err declaration __pthread_initialize_minimal_internal
- From: Khem Raj <raj dot khem at gmail dot com>
- To: libc-alpha at sourceware dot org
- Cc: Khem Raj <raj dot khem at gmail dot com>
- Date: Thu, 21 May 2015 23:23:34 -0700
- Subject: [PATCH] nptl: Add missing err declaration __pthread_initialize_minimal_internal
- Authentication-results: sourceware.org; auth=none
Fixes build problems on mips
nptl-init.c: In function '__pthread_initialize_minimal_internal':
nptl-init.c:333:48: error: 'err' undeclared (first use in this function)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
ChangeLog | 5 +++++
nptl/nptl-init.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ba7a400..ae5c8d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-15-21 Khem Raj <raj.khem@gmail.com>
+
+ * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Add
+ INTERNAL_SYSCALL_DECL (err).
+
2015-05-21 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 5b8d931..f885c5d 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -309,6 +309,7 @@ __pthread_initialize_minimal_internal (void)
used. */
__asm __volatile ("");
#endif
+ INTERNAL_SYSCALL_DECL (err);
/* Minimal initialization of the thread descriptor. */
struct pthread *pd = THREAD_SELF;
--
2.1.4