summaryrefslogtreecommitdiff
path: root/misc/gnome-utils/patches/patch-aa
blob: 3d4abea9861d93dd8aabe7b85d42366286bd7982 (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
$NetBSD: patch-aa,v 1.2 2001/10/13 08:30:25 rh Exp $

--- gtt/app.c.orig	Wed Sep 26 05:12:19 2001
+++ gtt/app.c
@@ -19,7 +19,11 @@
 
 #include <errno.h>
 #include <gnome.h>
+#ifdef HAVE_SCHED_H
 #include <sched.h>
+#else
+#include <unistd.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -181,7 +185,11 @@
 	 * routine.  So we try to ensure in-order execution by trying to let
 	 * the child process at least start running.  And we can do this by
 	 * yielding our time-slice ... */
+#ifdef HAVE_SCHED_H
 	sched_yield();
+#else
+	sleep(1);
+#endif
 }