From aaed7c408c0bd72c6f9437793a98542972f0a8fd Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Fri, 14 Nov 2014 10:21:53 -0800 Subject: Explicitly include SPL compat headers Inclusion of SPL compatibility headers was moved out of the public header sys/types.h to avoid conflicts with external packages. Include a few compatiblity headers explicitly to cope with that change. Also, sort some linux-specific inclusions alphabetically. Signed-off-by: Ned Bass Signed-off-by: Brian Behlendorf Closes #2898 --- module/nvpair/nvpair.c | 1 + 1 file changed, 1 insertion(+) (limited to 'module/nvpair') diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c index f5c31663a..9fd486bca 100644 --- a/module/nvpair/nvpair.c +++ b/module/nvpair/nvpair.c @@ -3293,6 +3293,7 @@ nvs_xdr(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen) } #if defined(_KERNEL) && defined(HAVE_SPL) +#include static int nvpair_init(void) { return 0; } static int nvpair_fini(void) { return 0; } -- cgit v1.2.3