From: Russ Cox Date: Wed, 13 Apr 2011 20:26:25 +0000 (-0400) Subject: libmach: fix freebsd compiler errors X-Git-Tag: weekly.2011-04-13~16 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4c5dd0e1eed79cf530c6963ce34ce78d950e0e79;p=gostls13.git libmach: fix freebsd compiler errors TBR=r CC=golang-dev https://golang.org/cl/4396045 --- diff --git a/src/libmach/freebsd.c b/src/libmach/freebsd.c index 531861e94d..45de966ec0 100644 --- a/src/libmach/freebsd.c +++ b/src/libmach/freebsd.c @@ -8,24 +8,28 @@ int ctlproc(int pid, char *msg) { sysfatal("ctlproc unimplemented in FreeBSD"); + return -1; } char* proctextfile(int pid) { sysfatal("proctextfile unimplemented in FreeBSD"); + return nil; } char* procstatus(int pid) { sysfatal("procstatus unimplemented in FreeBSD"); + return nil; } Map* attachproc(int pid, Fhdr *fp) { sysfatal("attachproc unimplemented in FreeBSD"); + return nil; } void @@ -38,4 +42,5 @@ int procthreadpids(int pid, int *p, int np) { sysfatal("procthreadpids unimplemented in FreeBSD"); + return -1; }