summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-af
blob: e0947163eed88ceb6df7c12eb24a7847214dee96 (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
$NetBSD: patch-af,v 1.5 2009/12/10 20:35:56 abs Exp $

--- lib/libxview/base/base.h.orig	1993-06-29 05:14:42.000000000 +0000
+++ lib/libxview/base/base.h
@@ -6,10 +6,15 @@
  *	file for terms of the license.
  */
 
+#include <sys/param.h>
 #ifndef xview_base_DEFINED
 #define xview_base_DEFINED
 #include <string.h>
+#if (defined(BSD) && (BSD >= 199103))
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 
 #include <xview/xv_c_types.h>
 
@@ -54,12 +59,14 @@
  * non-SVR4 systems.
  */
 #ifndef SUNOS41
+#if !(defined(BSD) && (BSD >= 199103))
 #define XV_OS_SVR4
-#define XV_USE_TTCOMPAT
 #define SYSV_WAIT 
-#define SYSV_UCONTEXT 
+#endif
+#define XV_USE_TTCOMPAT
 #define XV_USE_XVFCNTL 
 #endif
+#define SYSV_UCONTEXT 
  
 /*
  * 	These alloc macros should be functions someday with an error call out