public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix sparc64
@ 2006-10-02 18:26 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2006-10-02 18:26 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

NPTL fails to build on sparc64, as ptw-pause.os needs __sigprocmask,
which is only defined in libc.so (and not exported), but not in
libpthread.so.
I guess the easiest fix is just to inline the call instead of ensuring
sigprocmask.os is linked into libpthread.so.

2006-10-02  Jakub Jelinek  <jakub@redhat.com>

	[BZ #3291]
	* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
	errno.h, signal.h, unistd.h and sysdep-cancel.h.
	(__sigprocmask): Define.

--- libc/sysdeps/unix/sysv/linux/sparc/sparc64/pause.c.jj	2006-08-22 10:42:34.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/pause.c	2006-10-02 20:08:42.000000000 +0200
@@ -1 +1,9 @@
+#include <errno.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sysdep-cancel.h>
+
+#define __sigprocmask(how, set, oset) \
+  INLINE_SYSCALL (rt_sigprocmask, 4, how, set, oset, _NSIG / 8)
+
 #include <sysdeps/posix/pause.c>

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-02 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-02 18:26 [PATCH] Fix sparc64 Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).