1 |
Author: grobian |
2 |
Date: 2011-03-31 14:12:39 +0000 (Thu, 31 Mar 2011) |
3 |
New Revision: 1689 |
4 |
|
5 |
Modified: |
6 |
trunk/baselayout-prefix/src/start-stop-daemon.c |
7 |
Log: |
8 |
applied baselayout-1.12.5-darwin-kvm.patch |
9 |
|
10 |
Fix compilation on Darwin 10.5 and up which don't have kvm.h any more |
11 |
|
12 |
Modified: trunk/baselayout-prefix/src/start-stop-daemon.c |
13 |
=================================================================== |
14 |
--- trunk/baselayout-prefix/src/start-stop-daemon.c 2011-03-31 14:12:31 UTC (rev 1688) |
15 |
+++ trunk/baselayout-prefix/src/start-stop-daemon.c 2011-03-31 14:12:39 UTC (rev 1689) |
16 |
@@ -78,10 +78,14 @@ |
17 |
#include <sys/types.h> |
18 |
|
19 |
#include <err.h> |
20 |
-#include <kvm.h> |
21 |
#include <limits.h> |
22 |
#endif |
23 |
|
24 |
+#if defined(OSOpenBSD) || defined(OSFreeBSD) || defined(OSNetBSD) |
25 |
+#include <kvm.h> |
26 |
+#endif |
27 |
+ |
28 |
+ |
29 |
#if defined(OShpux) |
30 |
#include <sys/param.h> |
31 |
#include <sys/pstat.h> |