summaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 11:54:51 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 13:41:59 -0700
commit054bc00b4c0c257f6baf6d7145b270c7283fe51e (patch)
tree633060a0972e6ccbbe2f02ad6e4c4c5ab500220f /lib/libzfs
parent7b89a549965e50f4f80e41b804bfbc3c09bbddca (diff)
Add linux compatibility
Resolve minor Linux compatibility issues. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/libzfs_diff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_diff.c b/lib/libzfs/libzfs_diff.c
index 31e18aad2..8140a703a 100644
--- a/lib/libzfs/libzfs_diff.c
+++ b/lib/libzfs/libzfs_diff.c
@@ -160,18 +160,22 @@ print_what(FILE *fp, mode_t what)
case S_IFDIR:
symbol = '/';
break;
+#ifdef S_IFDOOR
case S_IFDOOR:
symbol = '>';
break;
+#endif
case S_IFIFO:
symbol = '|';
break;
case S_IFLNK:
symbol = '@';
break;
+#ifdef S_IFPORT
case S_IFPORT:
symbol = 'P';
break;
+#endif
case S_IFSOCK:
symbol = '=';
break;