public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Current glibc-2-1-branch linuxthreads/signals.c doesn't compile
@ 1999-10-22  0:10 Joel Klecker
  1999-10-23 21:05 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Klecker @ 1999-10-22  0:10 UTC (permalink / raw)
  To: libc-hacker

Without --with-headers, <ucontext.h> ends up being gotten from the system
headers, which is perhaps why this wasn't caught before.
linuxthreads/signals.c doesn't appear to need any of the functions prototyped in
<ucontext.h>, so I believe this is the correct fix.

1999-10-22 Joel Klecker <espy@debian.org>

	* signals.c: Include <sys/ucontext.h> instead of <ucontext.h>.

Index: linuxthreads/signals.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/signals.c,v
retrieving revision 1.8.2.3
diff -u -r1.8.2.3 signals.c
--- linuxthreads/signals.c	1999/09/25 16:59:50	1.8.2.3
+++ linuxthreads/signals.c	1999/10/22 06:54:36
@@ -19,7 +19,7 @@
 #include "pthread.h"
 #include "internals.h"
 #include "spinlock.h"
-#include <ucontext.h>
+#include <sys/ucontext.h>
 #include <sigcontextinfo.h>
 
 int pthread_sigmask(int how, const sigset_t * newmask, sigset_t * oldmask)
-- 
Joel Klecker (aka Espy)       <URL: mailto:espy@debian.org >
Debian Package Maintainer for the GNU C Library.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Current glibc-2-1-branch linuxthreads/signals.c doesn't compile
  1999-10-22  0:10 Current glibc-2-1-branch linuxthreads/signals.c doesn't compile Joel Klecker
@ 1999-10-23 21:05 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 1999-10-23 21:05 UTC (permalink / raw)
  To: Joel Klecker; +Cc: libc-hacker

Joel Klecker <jk@espy.org> writes:

> linuxthreads/signals.c doesn't appear to need any of the functions
> prototyped in <ucontext.h>, so I believe this is the correct fix.

I prefer to have the real heade included and so I make the same change
as for 2.2 (where I fixed this already some time ago).

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-10-23 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-22  0:10 Current glibc-2-1-branch linuxthreads/signals.c doesn't compile Joel Klecker
1999-10-23 21:05 ` Ulrich Drepper

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).