diff options
Diffstat (limited to 'lib/libnvpair')
-rw-r--r-- | lib/libnvpair/Makefile.am | 6 | ||||
-rw-r--r-- | lib/libnvpair/nvpair_alloc_system.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libnvpair/Makefile.am b/lib/libnvpair/Makefile.am index c9ac1f1fb..2833557a3 100644 --- a/lib/libnvpair/Makefile.am +++ b/lib/libnvpair/Makefile.am @@ -4,7 +4,7 @@ VPATH = \ $(top_srcdir)/module/nvpair \ $(top_srcdir)/lib/libnvpair -AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN) +AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS) DEFAULT_INCLUDES += \ -I$(top_srcdir)/include \ @@ -26,8 +26,8 @@ nodist_libnvpair_la_SOURCES = \ $(KERNEL_C) libnvpair_la_LIBADD = \ - $(top_builddir)/lib/libuutil/libuutil.la - + $(top_builddir)/lib/libuutil/libuutil.la \ + $(LIBTIRPC) libnvpair_la_LDFLAGS = -version-info 1:1:0 EXTRA_DIST = $(USER_C) diff --git a/lib/libnvpair/nvpair_alloc_system.c b/lib/libnvpair/nvpair_alloc_system.c index f45dc5f0b..54dde1ee6 100644 --- a/lib/libnvpair/nvpair_alloc_system.c +++ b/lib/libnvpair/nvpair_alloc_system.c @@ -27,6 +27,7 @@ #include <rpc/types.h> +#include <sys/kmem.h> #include <sys/nvpair.h> static void * |