openbsd-ports/plan9/plan9port/patches/patch-include_u_h
pascal 0422da9782 Plan 9 is a distributed computing environment built at Bell Labs
starting in the late 1980s. The system can be obtained from Bell
Labs at http://plan9.bell-labs.com/plan9 and runs on PCs and a
variety of other platforms. Plan 9 became a convenient platform for
experimenting with new ideas, applications, and services.

Plan 9 from User Space provides many of the ideas, applications,
and services from Plan 9 on Unix-like systems. It runs on FreeBSD
(x86), Linux (x86 and PowerPC), Mac OS X (PowerPC), OpenBSD (x86),
and SunOS (Sparc).


testing/feedback and ok landry@
2012-06-26 15:07:14 +00:00

13 lines
426 B
Plaintext

$OpenBSD: patch-include_u_h,v 1.1.1.1 2012/06/26 15:07:17 pascal Exp $
--- include/u.h.orig Thu Oct 27 21:28:18 2011
+++ include/u.h Thu Oct 27 21:28:57 2011
@@ -116,6 +116,8 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)
# undef _NEEDULONG
#elif defined(__OpenBSD__)
# include <sys/types.h>
+# include <pthread.h>
+# define PLAN9PORT_USING_PTHREADS 1
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG