summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-06-20 13:48:20 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-06-20 13:48:20 +0400
commit703ca2afd8a770ea8805edfa026531c72c2dcdd1 (patch)
tree70135f1528f0ac721574a29c71aaedfb2c57b2ea
parenta0e78a24b2c2c665ae535a4a69dc69de8e7f87ef (diff)
downloadtruss-703ca2afd8a770ea8805edfa026531c72c2dcdd1.tar.gz
Check for zfs_cmd_t.zc_flags
In current Dyson kernel we don't have such a member
-rw-r--r--usr/src/cmd/truss/expound.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/cmd/truss/expound.c b/usr/src/cmd/truss/expound.c
index 915ec46..19cc651 100644
--- a/usr/src/cmd/truss/expound.c
+++ b/usr/src/cmd/truss/expound.c
@@ -28,6 +28,10 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define _SYSCALL32
#include <stdio.h>
@@ -5071,10 +5075,12 @@ show_zfs_ioc(private_t *pri, long addr)
(void) printf(" zc_defer_destroy=%d\n",
(int)zc.zc_defer_destroy);
}
+#ifdef HAVE_ZFS_CMD_T_ZC_FLAGS
if (zc.zc_flags) {
(void) printf(" zc_flags=0x%x\n",
zc.zc_flags);
}
+#endif
if (zc.zc_action_handle) {
(void) printf(" zc_action_handle=%llu\n",
(u_longlong_t)zc.zc_action_handle);