This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Fix NPTL build error when missing __NR_set_robust_list.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 17 Oct 2014 11:31:28 -0700 (PDT)
- Subject: [COMMITTED PATCH] Fix NPTL build error when missing __NR_set_robust_list.
- Authentication-results: sourceware.org; auth=none
Almost all the references to the set_robust_list system call are
conditionalized. This one was not.
Thanks,
Roland
2014-10-17 Roland McGrath <roland@hack.frob.com>
* nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
[__NR_set_robust_list].
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -162,9 +162,11 @@ static
void
__nptl_set_robust (struct pthread *self)
{
+#ifdef __NR_set_robust_list
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL (set_robust_list, err, 2, &self->robust_head,
sizeof (struct robust_list_head));
+#endif
}