Commit 1d6ae53c authored by Hector Chu's avatar Hector Chu Committed by Alex Brainman

fix windows/amd64 build with newest mingw-w64

R=alex.brainman, golang-dev
CC=golang-dev
https://golang.org/cl/4968048
parent 361c5ace
...@@ -112,6 +112,7 @@ extern void sysfatal(char*, ...); ...@@ -112,6 +112,7 @@ extern void sysfatal(char*, ...);
#define notejmp p9notejmp #define notejmp p9notejmp
#define jmp_buf p9jmp_buf #define jmp_buf p9jmp_buf
#define pow10 p9pow10 #define pow10 p9pow10
#undef strtod
#define strtod fmtstrtod #define strtod fmtstrtod
#define charstod fmtcharstod #define charstod fmtcharstod
#endif #endif
...@@ -306,6 +307,7 @@ extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); ...@@ -306,6 +307,7 @@ extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
extern int fork(void); extern int fork(void);
extern int pread(int fd, void *buf, int n, int off); extern int pread(int fd, void *buf, int n, int off);
extern int pwrite(int fd, void *buf, int n, int off); extern int pwrite(int fd, void *buf, int n, int off);
#undef lseek
#define lseek(fd, n, base) _lseeki64(fd, n, base) #define lseek(fd, n, base) _lseeki64(fd, n, base)
#define mkdir(path, perm) mkdir(path) #define mkdir(path, perm) mkdir(path)
#define pipe(fd) _pipe(fd, 512, O_BINARY) #define pipe(fd) _pipe(fd, 512, O_BINARY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment