diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 | 
| commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
| tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /include | |
| parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
| download | golang-upstream/2011.01.12.tar.gz | |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'include')
| -rw-r--r-- | include/libc.h | 8 | ||||
| -rw-r--r-- | include/u.h | 5 | 
2 files changed, 12 insertions, 1 deletions
| diff --git a/include/libc.h b/include/libc.h index ea6fc3b26..1103bcf81 100644 --- a/include/libc.h +++ b/include/libc.h @@ -292,9 +292,15 @@ extern	char*	getgoroot(void);  extern	char*	getgoversion(void);  #ifdef __MINGW32__ -extern int fork(); +struct timespec { +	int tv_sec; +	long tv_nsec; +}; +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); +#define execv(prog, argv) execv(prog, (const char* const*)(argv))  #define execvp(prog, argv) execvp(prog, (const char**)(argv))  #define lseek(fd, n, base) _lseeki64(fd, n, base)  #define mkdir(path, perm) mkdir(path) diff --git a/include/u.h b/include/u.h index 6dd55a09c..3cc1f335c 100644 --- a/include/u.h +++ b/include/u.h @@ -68,6 +68,7 @@ extern "C" {  #include <stddef.h>  #include <math.h>  #include <ctype.h>	/* for tolower */ +#include <signal.h>  /*   * OS-specific crap @@ -192,6 +193,10 @@ typedef u64int uint64;  #undef _NEEDUINT  #undef _NEEDULONG +#ifndef SIGBUS +#define SIGBUS SIGSEGV /* close enough */ +#endif +  /*   * Funny-named symbols to tip off 9l to autolink.   */ | 
