summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-05-09 06:06:11 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-05-09 06:06:11 +0400
commit00519f8bf5b56db1991923206c6cf8e01fcbfd9a (patch)
treeb67a066a04f95600085cd92f15ef87d2c27def89 /usr/src
parenteb25c56979283fb7b38dcabb65a694747fb15463 (diff)
downloadlibdevice-upstream.tar.gz
Autotoolized versionupstream/1.0upstream
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libdevice/devctl.c10
-rw-r--r--usr/src/lib/libdevice/libdevice.h2
2 files changed, 9 insertions, 3 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;
diff --git a/usr/src/lib/libdevice/libdevice.h b/usr/src/lib/libdevice/libdevice.h
index 22a8ab1..3bf4696 100644
--- a/usr/src/lib/libdevice/libdevice.h
+++ b/usr/src/lib/libdevice/libdevice.h
@@ -27,8 +27,6 @@
#ifndef _LIBDEVICE_H
#define _LIBDEVICE_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/sunddi.h>
#include <sys/ddi_impldefs.h>
#include <sys/devctl.h>