blob: 92d0596950e0dceb7e94748f31dfc0b2112b7959 (
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
|
Description: We can't build libzonecfg at this time
(too many dependencies), and we need only two constants
from libzonecfg.h ;-) and one function from libc (zone.h)
Index: b/usr/src/lib/libproc/common/Pzone.c
===================================================================
--- a/usr/src/lib/libproc/common/Pzone.c 2014-04-07 17:51:11.780114426 +0400
+++ b/usr/src/lib/libproc/common/Pzone.c 2014-04-07 17:51:19.839935779 +0400
@@ -31,8 +31,8 @@
#include <assert.h>
#include <dlfcn.h>
#include <errno.h>
-#include <libzonecfg.h>
#include <link.h>
+#include <zone.h>
#include <string.h>
#include <strings.h>
#include <sys/list.h>
@@ -41,6 +41,14 @@
#include <sys/mman.h>
#include <sys/mnttab.h>
+#ifndef Z_NO_ZONE
+#define Z_NO_ZONE 16 /* no such zone */
+#endif
+
+#ifndef Z_OK
+#define Z_OK 0
+#endif
+
#include "Pcontrol.h"
struct path_node {
|