diff options
author | Rob Pike <r@golang.org> | 2011-04-13 14:57:47 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-04-13 14:57:47 -0700 |
commit | 179f0b8a0717567a7d57e65ec83e69371e12ea97 (patch) | |
tree | f3e455b756fc97a44c7dd565323c6347ee2253c0 | |
parent | 5666ec87353178e0124b6263ed3c87d799557fcb (diff) | |
download | go-179f0b8a0717567a7d57e65ec83e69371e12ea97.tar.gz go-179f0b8a0717567a7d57e65ec83e69371e12ea97.zip |
libmach: fix the windows build.
Newly enabled compiler errors need workaround.
R=rsc
CC=golang-dev
https://golang.org/cl/4397047
-rw-r--r-- | src/libmach/windows.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libmach/windows.c b/src/libmach/windows.c index 391761c185..81fa6b6d27 100644 --- a/src/libmach/windows.c +++ b/src/libmach/windows.c @@ -8,24 +8,28 @@ int ctlproc(int pid, char *msg) { sysfatal("ctlproc unimplemented in Windows"); + return -1; } char* proctextfile(int pid) { sysfatal("proctextfile unimplemented in Windows"); + return nil; } char* procstatus(int pid) { sysfatal("procstatus unimplemented in Windows"); + return nil; } Map* attachproc(int pid, Fhdr *fp) { sysfatal("attachproc unimplemented in Windows"); + return nil; } void @@ -38,22 +42,26 @@ int procthreadpids(int pid, int *p, int np) { sysfatal("procthreadpids unimplemented in Windows"); + return -1; } int pread(int fd, void *buf, int count, int offset) { sysfatal("pread unimplemented in Windows"); + return -1; } int pwrite(int fd, void *buf, int count, int offset) { sysfatal("pwrite unimplemented in Windows"); + return -1; } int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) { sysfatal("nanosleep unimplemented in Windows"); + return -1; } |