aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHector Chu <hectorchu@gmail.com>2011-09-07 15:49:56 -0400
committerRuss Cox <rsc@golang.org>2011-09-07 15:49:56 -0400
commitaed2c06dcbc21a305fb96418a97fcd935e27272d (patch)
tree3b3d2920271370b321bfca318aa7f81577d4e73a /include
parent08ae1a5a23e68056dad09ea48e53c4fae36e37b1 (diff)
downloadgo-aed2c06dcbc21a305fb96418a97fcd935e27272d.tar.xz
5a, 5c, 6a, 6c, 8a, 8c: fix Windows file paths
Verified with objdump -W. R=alex.brainman, rsc CC=golang-dev https://golang.org/cl/4974061
Diffstat (limited to 'include')
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index 0817d77b81..f9ad963345 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -307,6 +307,8 @@ extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
extern int fork(void);
extern int pread(int fd, void *buf, int n, int off);
extern int pwrite(int fd, void *buf, int n, int off);
+#undef getwd
+#define getwd(s, ns) getcwd(s, ns)
#undef lseek
#define lseek(fd, n, base) _lseeki64(fd, n, base)
#define mkdir(path, perm) mkdir(path)