summaryrefslogtreecommitdiff
path: root/src/common_compat.h
diff options
context:
space:
mode:
authorDeepak Singh Rawat <drawat@vmware.com>2017-08-07 15:57:56 -0700
committerSinclair Yeh <syeh@vmware.com>2017-08-07 15:57:56 -0700
commitd8c2f8501307a9c0c65601e897e7d919e42ba0b3 (patch)
tree2e011477c8845b049461536e7471c53344d84357 /src/common_compat.h
parented0fd2f2823917a5dfefa3d3af774d4cdb40f958 (diff)
vmware: Fix build warnings
Due to following commit in xserver there were build warnings, as variables now declared const. d89b42bda46d36fc0879611cc3b3566957ce36d0 e1e01d2e33c632e395d7e396f73fba8ae606b15a Added a compat header file. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>:q
Diffstat (limited to 'src/common_compat.h')
-rw-r--r--src/common_compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common_compat.h b/src/common_compat.h
new file mode 100644
index 0000000..d7b4867
--- /dev/null
+++ b/src/common_compat.h
@@ -0,0 +1,11 @@
+#ifndef _COMMON_COMPAT_H_
+#define _COMMOM_COMPAT_H_
+
+#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 18)
+#define CONST_ABI_18_0 const
+#else
+#define CONST_ABI_18_0
+#endif
+
+#endif
+