summaryrefslogtreecommitdiff
path: root/editors/sam/patches/patch-ae
blob: 37f26cf1dcd3a7d2cadd402a92fcf67d6f61dc5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- 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 <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
+#include <sys/param.h>
 #include <setjmp.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -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