aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2015-01-01 02:23:55 -0500
committerMinux Ma <minux@golang.org>2015-01-02 03:36:11 +0000
commit29c85739d5492011ead7042ea3a6c2e35e252a36 (patch)
tree8afe2ce662b2518d3689c41a72717d5109b7e680 /include
parentcb1897a58c38b435f7aa478356bc86feb78d8a02 (diff)
downloadgo-29c85739d5492011ead7042ea3a6c2e35e252a36.tar.xz
include: remove unnecessary stuff on windows
Our definition of struct timespec used to cause problems with certain versions of mingw-rt. However, as it turns out, we don't actually need those definitions and prototypes, so remove them. Fixes #9472. Change-Id: Ie0880f0d58be112625140f73d0bed71f98b7cf05 Reviewed-on: https://go-review.googlesource.com/2236 Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libc.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/libc.h b/include/libc.h
index e10dde3adf..e4d8799077 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -310,24 +310,15 @@ extern void flagprint(int);
#ifdef _WIN32
#if !defined(_WIN64) && !defined(__MINGW64_VERSION_MAJOR)
-struct timespec {
- int tv_sec;
- long tv_nsec;
-};
#define execv(prog, argv) execv(prog, (const char* const*)(argv))
#define execvp(prog, argv) execvp(prog, (const char**)(argv))
#endif
-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)
-#define pipe(fd) _pipe(fd, 512, O_BINARY)
#else
#define O_BINARY 0
#endif