diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-09 06:06:11 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-09 06:06:11 +0400 |
commit | 00519f8bf5b56db1991923206c6cf8e01fcbfd9a (patch) | |
tree | b67a066a04f95600085cd92f15ef87d2c27def89 /usr/src/lib/libdevice/devctl.c | |
parent | eb25c56979283fb7b38dcabb65a694747fb15463 (diff) | |
download | libdevice-00519f8bf5b56db1991923206c6cf8e01fcbfd9a.tar.gz |
Autotoolized versionupstream/1.0upstream
Diffstat (limited to 'usr/src/lib/libdevice/devctl.c')
-rw-r--r-- | usr/src/lib/libdevice/devctl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/lib/libdevice/devctl.c b/usr/src/lib/libdevice/devctl.c index da48342..8bea9bc 100644 --- a/usr/src/lib/libdevice/devctl.c +++ b/usr/src/lib/libdevice/devctl.c @@ -37,7 +37,15 @@ #include <stdlib.h> #include <stdio.h> #include <unistd.h> -#include <sys/nvpair.h> + +#if defined(HAVE_LIBNVPAIR_H) +# include <libnvpair.h> +#elif defined(HAVE_SYS_NVPAIR_H) +# include <sys/nvpair.h> +#else +# error Cannot find libnvpair headers +#endif + #include "libdevice.h" static int _libdevice_debug = 0; |