pkgsrc/filesystems/u9fs/patches/patch-ac
agc 4512c74efe Initial import of u9fs-2.0.3 to the Packages Collection.
U9fs is a program that serves Unix files to Plan 9 machines
	using the 9P protocol.  It is typically invoked on a Unix
	machine by inetd with its standard input and output connected
	to a network connection, typically TCP on an Ethernet.  It
	typically runs as user root and multiplexes access to multiple
	Plan 9 clients over the single wire.  It assumes Plan 9 uids
	match Unix login names, and changes to the corresponding Unix
	effective uid when processing requests.  U9fs serves both 9P1
	(the 9P protocol as used by the second and third editions of
	Plan 9) and 9P2000.
2007-04-24 19:06:03 +00:00

20 lines
552 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2007/04/24 19:06:03 agc Exp $
--- plan9.h 2007/04/23 22:30:40 1.1
+++ plan9.h 2007/04/23 22:06:13
@@ -1,9 +1,15 @@
+#include <sys/param.h>
+
+#if defined(BSD) && BSD >= 199506
+#define _BSD_TYPES
+#else
/* magic to get SUSV2 standard, including pread, pwrite*/
#define _XOPEN_SOURCE 500
/* magic to get 64-bit pread/pwrite */
#define _LARGEFILE64_SOURCE
/* magic to get 64-bit stat on Linux, maybe others */
#define _FILE_OFFSET_BITS 64
+#endif /* !BSD */
#ifdef sgi
#define _BSD_TYPES 1 /* for struct timeval */