Index: libthreads/Makefile
===================================================================
RCS file: /cvsroot/hurd/hurd/libthreads/Makefile,v
retrieving revision 1.35
diff -u -r1.35 Makefile
--- libthreads/Makefile	27 Mar 2000 18:19:46 -0000	1.35
+++ libthreads/Makefile	9 Aug 2003 11:27:51 -0000
@@ -1,5 +1,5 @@
 #
-#   Copyright (C) 1994,95,96,97,2000 Free Software Foundation, Inc.
+#   Copyright (C) 1994,95,96,97,2000,03 Free Software Foundation, Inc.
 #
 #   This program is free software; you can redistribute it and/or
 #   modify it under the terms of the GNU General Public License as
@@ -23,13 +23,14 @@
 SRCS := call.c cprocs.c cthread_data.c cthreads.c stack.c \
 	cancel-cond.c rwlock.c lockfile.c
 I386SRCS := i386/csw.S i386/thread.c
+PPCSRCS := ppc/csw.S ppc/thread.c
 
 # In GNU machine/cthreads.h is omitted; that work is done in libc headers.
 LCLHDRS := cthread_internals.h options.h cthreads.h rwlock.h
 
-OBJS = $(addsuffix .o,$(basename $(notdir $(SRCS) $(I386SRCS))))
+OBJS = $(addsuffix .o,$(basename $(notdir $(SRCS) $(I386SRCS) $(PPCSRCS))))
 
-OTHERTAGS = $(I386SRCS) $(I386HDRS)
+OTHERTAGS = $(I386SRCS) $(I386HDRS) $(PPCSRCS)
 
 libname = libthreads
 installhdrs = cthreads.h rwlock.h
@@ -43,12 +44,15 @@
 # what that means, you'll understand this line.
 CFLAGS := $(filter-out -Wall,$(CFLAGS))
 
-lndist: lndist-i386-files
+lndist: lndist-i386-files lndist-ppc-files
 
 lndist-i386-files: $(top_srcdir)/hurd-snap/$(dir)/i386
 	ln $(addprefix $(srcdir)/,$(I386SRCS) $(I386HDRS)) $<
 
-$(top_srcdir)/hurd-snap/$(dir)/i386:
+lndist-ppc-files: $(top_srcdir)/hurd-snap/$(dir)/ppc
+	ln $(addprefix $(srcdir)/,$(PPCSRCS)) $<
+
+$(top_srcdir)/hurd-snap/$(dir)/i386 $(top_srcdir)/hurd-snap/$(dir)/ppc:
 	mkdir $@
 
 ifeq ($(VERSIONING),yes)
Index: libthreads/cprocs.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libthreads/cprocs.c,v
retrieving revision 1.17
diff -u -r1.17 cprocs.c
--- libthreads/cprocs.c	29 May 2002 00:01:24 -0000	1.17
+++ libthreads/cprocs.c	9 Aug 2003 11:27:52 -0000
@@ -414,7 +414,11 @@
 	p->msg.msgh_size = 0; /* initialized in call */
 	p->msg.msgh_remote_port = p->wired;
 	p->msg.msgh_local_port = MACH_PORT_NULL;
+#ifdef MACH_RCV_TRAILER_SEQNO
+	p->msg.msgh_reserved = 0;
+#else
 	p->msg.msgh_kind = MACH_MSGH_KIND_NORMAL;
+#endif
 	p->msg.msgh_id = 0;
 
 	spin_lock(&cproc_list_lock);
@@ -449,7 +453,11 @@
 	wakeup_msg.msgh_size = 0; /* initialized in call */
 	wakeup_msg.msgh_remote_port = wait_port;
 	wakeup_msg.msgh_local_port = MACH_PORT_NULL;
+#ifdef MACH_RCV_TRAILER_SEQNO
+	wakeup_msg.msgh_reserved = 0;
+#else
 	wakeup_msg.msgh_kind = MACH_MSGH_KIND_NORMAL;
+#endif
 	wakeup_msg.msgh_id = 0;
 
 	cprocs_started = TRUE;

