]> Cypherpunks repositories - gostls13.git/commitdiff
Add a dummy WaitStatus.TrapCause for Darwin to unbreak the build.
authorAustin Clements <aclements@csail.mit.edu>
Wed, 15 Jul 2009 17:12:06 +0000 (10:12 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Wed, 15 Jul 2009 17:12:06 +0000 (10:12 -0700)
R=gri
APPROVED=gri
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=31673
CL=31673

src/pkg/syscall/syscall_darwin.go

index b8657aca56e85d072e22035a022842a591e54a4b..49d2815b36d398f00f260218af8e6825b887fdb7 100644 (file)
@@ -135,6 +135,11 @@ func (w WaitStatus) StopSignal() int {
        return int(w >> shift) & 0xFF;
 }
 
+func (w WaitStatus) TrapCause() int {
+       // Darwin doesn't have trap causes
+       return -1;
+}
+
 //sys  wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, errno int)
 func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, errno int) {
        var status _C_int;