summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcmdutils/common
diff options
context:
space:
mode:
authorJason King <jason.brian.king@gmail.com>2017-06-11 01:01:30 -0500
committerGordon Ross <gwr@nexenta.com>2017-06-12 18:53:07 -0400
commitd1151f9bab097777251f26772ebcc50468637a12 (patch)
tree1b75933c1a647bbe9c8a8959a56f220bf2098c0a /usr/src/lib/libcmdutils/common
parent336970851eecf9c4348b3de7bbea0687059dd216 (diff)
downloadillumos-joyent-d1151f9bab097777251f26772ebcc50468637a12.tar.gz
8369 libcmdutils should be better about large file support
8370 libcmdutils needlessly defines its own OFFSETOF() macro Reviewed by: Yuri Pankov <yuripv@gmx.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/lib/libcmdutils/common')
-rw-r--r--usr/src/lib/libcmdutils/common/avltree.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libcmdutils/common/avltree.c b/usr/src/lib/libcmdutils/common/avltree.c
index 53e919ed34..7146ad4c97 100644
--- a/usr/src/lib/libcmdutils/common/avltree.c
+++ b/usr/src/lib/libcmdutils/common/avltree.c
@@ -22,13 +22,14 @@
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2017 Joyent, Inc.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/avl.h>
#include <sys/types.h>
#include <stdlib.h>
+#include <stddef.h>
#include "libcmdutils.h"
/*
@@ -175,7 +176,7 @@ add_tnode(avl_tree_t **stree, dev_t device, ino_t inode)
avl_create(*stree,
tnode_compare,
sizeof (tree_node_t),
- OFFSETOF(tree_node_t, avl_link));
+ offsetof(tree_node_t, avl_link));
}
/* Initialize the node */