diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 15:46:40 +0300 |
commit | e5888a1ffdae813d7575f5fb02275c6bb07e5199 (patch) | |
tree | d8d51eac403f07814b9e936eed0c9a79195e2450 /sys/src/cmd/unix/drawterm/include/unix.h |
Import sources from 2011-03-30 iso image
Diffstat (limited to 'sys/src/cmd/unix/drawterm/include/unix.h')
-rwxr-xr-x | sys/src/cmd/unix/drawterm/include/unix.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/src/cmd/unix/drawterm/include/unix.h b/sys/src/cmd/unix/drawterm/include/unix.h new file mode 100755 index 000000000..862d9930d --- /dev/null +++ b/sys/src/cmd/unix/drawterm/include/unix.h @@ -0,0 +1,34 @@ +#undef _FORTIFY_SOURCE /* stupid ubuntu warnings */ +#define __BSD_VISIBLE 1 /* FreeBSD 5.x */ +#define _BSD_SOURCE 1 +#define _NETBSD_SOURCE 1 /* NetBSD */ +#define _SVID_SOURCE 1 +#if !defined(__APPLE__) && !defined(__OpenBSD__) +# define _XOPEN_SOURCE 1000 +# define _XOPEN_SOURCE_EXTENDED 1 +#endif +#define _LARGEFILE64_SOURCE 1 +#define _FILE_OFFSET_BITS 64 + + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <math.h> +#include <fcntl.h> +#include <setjmp.h> +#include <stddef.h> +#include <time.h> +#include <assert.h> +#include <unistd.h> +#include <stdarg.h> +#include <inttypes.h> +#include <ctype.h> +#include <errno.h> +#ifdef PTHREAD +#include <pthread.h> +#endif + +typedef long long p9_vlong; +typedef unsigned long long p9_uvlong; +typedef uintptr_t uintptr; |