diff options
author | Richard Lowe <[email protected]> | 2012-07-08 19:01:30 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-08-30 15:53:38 -0700 |
commit | 1afc54f7f4f88902d0a3a3d88f6c7c6311c886ee (patch) | |
tree | 7396ec48ca36d10ddf18bef439398fd579b78a46 /module | |
parent | d22323e89f13975e1a60860aa78609584f00a606 (diff) |
OpenZFS 2976 - remove useless offsetof() macros
Authored by: Richard Lowe <[email protected]>
Reviewed by: Josef 'Jeff' Sipek <[email protected]>
Reviewed by: Igor Kozhukhov <[email protected]>
Reviewed by: Andy Stormont <[email protected]>
Approved by: Dan McDonald <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: Giuseppe Di Natale <[email protected]>
OpenZFS-issue: https://www.illumos.org/issues/2976
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/5c5f137
Closes #6582
Diffstat (limited to 'module')
-rw-r--r-- | module/nvpair/nvpair.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c index c0155f729..5ce389f14 100644 --- a/module/nvpair/nvpair.c +++ b/module/nvpair/nvpair.c @@ -37,16 +37,15 @@ #include <sys/varargs.h> #include <sys/ddi.h> #include <sys/sunddi.h> +#include <sys/sysmacros.h> #else #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <strings.h> +#include <stddef.h> #endif -#ifndef offsetof -#define offsetof(s, m) ((size_t)(&(((s *)0)->m))) -#endif #define skip_whitespace(p) while ((*(p) == ' ') || (*(p) == '\t')) p++ /* |