From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- src/libmach/windows.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/libmach/windows.c') diff --git a/src/libmach/windows.c b/src/libmach/windows.c index 81fa6b6d2..aea7bace0 100644 --- a/src/libmach/windows.c +++ b/src/libmach/windows.c @@ -48,8 +48,12 @@ procthreadpids(int pid, int *p, int np) int pread(int fd, void *buf, int count, int offset) { - sysfatal("pread unimplemented in Windows"); - return -1; + int oldoffset, n; + + oldoffset = seek(fd, offset, 0); + n = read(fd, buf, count); + seek(fd, oldoffset, 0); + return n; } int -- cgit v1.2.3