summaryrefslogtreecommitdiff
path: root/x11/xautolock/patches/patch-aa
blob: 2e010b0eefc535865f1a6585694042af7413130a (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
$NetBSD: patch-aa,v 1.3 1999/04/05 22:46:28 mjl Exp $

--- xautolock.c.orig	Thu Mar 11 23:43:25 1999
+++ xautolock.c	Tue Apr  6 00:06:02 1999
@@ -297,6 +297,8 @@
  *  with vroot.h, because it needs to know the real root window.
  */
 
+#include <sys/param.h>
+
 #if defined(hpux) || defined (__hpux)
 #ifndef _HPUX_SOURCE
 #define _HPUX_SOURCE
@@ -368,7 +370,10 @@
 #endif /* !NOSTDHDRS */
 
 #if !defined (apollo) && !defined (VMS)
+#if !defined (BSD) 
 #include <malloc.h>
+#endif /* !BSD */
+
 #include <unistd.h>
 #endif /* !apollo && !VMS */
 
@@ -2028,7 +2033,9 @@
 #else /* VMS */
   if (locker_pid)
   {
-#if !defined (UTEKV) && !defined (SYSV) && !defined(SVR4)
+#if defined (BSD)
+    int status;
+#elif !defined (UTEKV) && !defined (SYSV) && !defined(SVR4)
     union wait  status;      /* childs process status */
 #else /* !UTEKV && !SYSV && !SVR4 */
     int         status = 0;  /* childs process status */