]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: fix the windows build.
authorRob Pike <r@golang.org>
Wed, 13 Apr 2011 21:57:47 +0000 (14:57 -0700)
committerRob Pike <r@golang.org>
Wed, 13 Apr 2011 21:57:47 +0000 (14:57 -0700)
Newly enabled compiler errors need workaround.

R=rsc
CC=golang-dev
https://golang.org/cl/4397047

src/libmach/windows.c

index 391761c1857f00e0efed57c2fb83aaaf26dab0e3..81fa6b6d2778758a2b231729883eac5709e0ee14 100644 (file)
@@ -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;
 }