summaryrefslogtreecommitdiff
path: root/lang/swi-prolog-lite/patches/patch-ai
blob: 5f41fc2d0cd0156b2bba5b158b660a73189efe6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ai,v 1.1.1.1 2004/05/20 11:09:17 hubertf Exp $

--- packages//xpce/src/unx/process.c.orig	2002-02-01 16:05:02.000000000 +0100
+++ packages//xpce/src/unx/process.c
@@ -45,7 +45,13 @@ simulated using CreatePipe() and CreateP
 reduced to the facility to terminate the inferior process.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
 
-#ifdef __unix__
+/* that's not passed down, and pulling in src/pl-incl.h doesn't work 
+   for some reason - HF */
+#ifdef __NetBSD__
+#  define __unix__ 1
+#endif
+
+#if defined(__unix__)
 #define HAVE_FORK	1
 #define HAVE_PTYS	1
 #define HAVE_KILL	1