$NetBSD: patch-ae,v 1.3 1998/08/07 11:11:18 agc Exp $ --- include/u.h.orig Mon Sep 29 15:06:18 1997 +++ include/u.h Mon Sep 29 17:03:25 1997 @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -46,9 +47,14 @@ #define NOFIFO /* turn off exstart in samterm/unix.c */ #endif /* UMIPS */ -#ifdef SUNOS +#if defined(SUNOS) +#if !(defined(BSD) && BSD >= 199306) typedef unsigned short ushort; +#endif +#ifndef __NetBSD__ +/* from the original FreeBSD port, it would seem they don't have this - agc */ typedef unsigned long ulong; +#endif extern char *strerror(int); extern void *memmove(void*, const void*, size_t); extern void *memcpy(void*, const void*, size_t); @@ -102,7 +108,10 @@ #endif /* PTX */ #ifdef BSDi +/* The FreeBSD port seems to imply that this isn't a problem - agc */ +#ifndef __NetBSD__ typedef unsigned long ulong; +#endif /* !__NetBSD__ */ #endif /* BSDi */ #ifdef v10