Illumos 3897 introduces a dependency on crgetzoneid(). Stub it out until
such time as zones are implemented.
References:
https://www.illumos.org/issues/3897
https://github.com/illumos/illumos-gate/commit/
fb7001f
Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #444
#include <sys/byteorder.h>
-#define zone_dataset_visible(x, y) (1)
-#define INGLOBALZONE(z) (1)
+#define GLOBAL_ZONEID 0
+
+#define zone_dataset_visible(x, y) (1)
+#define crgetzoneid(x) (GLOBAL_ZONEID)
+#define INGLOBALZONE(z) (1)
#endif /* SPL_ZONE_H */