summaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-14 10:02:42 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-14 10:03:14 -0700
commit293086b3aa21e1e5242a8331802bc687dc5bb818 (patch)
tree36e1c7d09422b26f2a23b991af6d3a7d07395a80 /kvm.h
parentf64b9caa08674b46526095162c1f5fe7d2ef5edf (diff)
downloadillumos-kvm-293086b3aa21e1e5242a8331802bc687dc5bb818.tar.gz
HVM-366 Don't lie about requiring GNU C
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/kvm.h b/kvm.h
index 5e85333..5257c3f 100644
--- a/kvm.h
+++ b/kvm.h
@@ -1,6 +1,18 @@
#ifndef __KVM_H
#define __KVM_H
+/*
+ * The userland / kernel interface was initially defined by the Linux KVM
+ * project. As a part of our efforts to port it, it's important to maintain
+ * compatibility with the portions of that interface that we implement. A side
+ * effect of this is that we require GNU extensions to C. Rather than let a
+ * consumer go crazy trying to understand and track down odd compiler errors, we
+ * explicitly note that this file is not ISO C.
+ */
+#ifndef __GNUC__
+#error "The KVM Header files require GNU C extensions for compatability."
+#endif
+
#include <sys/types.h>
#include <sys/param.h>
#include "kvm_x86.h"