aboutsummaryrefslogtreecommitdiff
path: root/include/u.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-20 23:40:47 +0000
committerrsc <devnull@localhost>2005-07-20 23:40:47 +0000
commit20e8b903e1a4cc40922318f5378775cb4cf178b2 (patch)
treee6ae62efe4e96f8c8c8b5c49c348ef6c7c2ef2d7 /include/u.h
parentb4b686415dcb5ffd64a48d04ad5576de54958eaf (diff)
downloadplan9port-20e8b903e1a4cc40922318f5378775cb4cf178b2.tar.gz
plan9port-20e8b903e1a4cc40922318f5378775cb4cf178b2.tar.bz2
plan9port-20e8b903e1a4cc40922318f5378775cb4cf178b2.zip
no stdint
Diffstat (limited to 'include/u.h')
-rw-r--r--include/u.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/u.h b/include/u.h
index e5aeae50..0a696ceb 100644
--- a/include/u.h
+++ b/include/u.h
@@ -10,14 +10,14 @@ extern "C" {
#define _BSD_SOURCE 1
#define _NETBSD_SOURCE 1 /* NetBSD */
#define _SVID_SOURCE 1
-#ifndef __APPLE__
+#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 <stdint.h>
+#include <inttypes.h>
#include <unistd.h>
#include <string.h>
@@ -95,9 +95,11 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDULONG
#elif defined(__OpenBSD__)
# include <sys/types.h>
+# include <pthread.h>
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG
+# define PLAN9PORT_USING_PTHREADS 1
#else
/* No idea what system this is -- try some defaults */
# include <pthread.h>