diff options
Diffstat (limited to 'src/vmwaremodule.c')
-rw-r--r-- | src/vmwaremodule.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/vmwaremodule.c b/src/vmwaremodule.c index d46d26d..c512559 100644 --- a/src/vmwaremodule.c +++ b/src/vmwaremodule.c @@ -27,6 +27,9 @@ #include <xf86.h> #include <xf86drm.h> +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Defines and exported module info. @@ -39,18 +42,11 @@ #define VMW_STRING_INNER(s) #s #define VMW_STRING(str) VMW_STRING_INNER(str) -#define VMWARE_VERSION_MAJOR 11 -#define VMWARE_VERSION_MINOR 0 -#define VMWARE_VERSION_PATCH 0 -#define VMWARE_VERSION_STRING_MAJOR VMW_STRING(VMWARE_VERSION_MAJOR) -#define VMWARE_VERSION_STRING_MINOR VMW_STRING(VMWARE_VERSION_MINOR) -#define VMWARE_VERSION_STRING_PATCH VMW_STRING(VMWARE_VERSION_PATCH) - #define VMWARE_DRIVER_VERSION \ - (VMWARE_VERSION_MAJOR * 65536 + VMWARE_VERSION_MINOR * 256 + VMWARE_VERSION_PATCH) + (PACKAGE_VERSION_MAJOR * 65536 + PACKAGE_VERSION_MINOR * 256 + PACKAGE_VERSION_PATCHLEVEL) #define VMWARE_DRIVER_VERSION_STRING \ - VMWARE_VERSION_STRING_MAJOR "." VMWARE_VERSION_STRING_MINOR \ - "." VMWARE_VERSION_STRING_PATCH + VMW_STRING(PACKAGE_VERSION_MAJOR) "." VMW_STRING(PACKAGE_VERSION_MINOR) \ + "." VMW_STRING(PACKAGE_VERSION_PATCHLEVEL) /* * Standard four digit version string expected by VMware Tools installer. @@ -135,7 +131,7 @@ static XF86ModuleVersionInfo vmware_version = { MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - VMWARE_VERSION_MAJOR, VMWARE_VERSION_MINOR, VMWARE_VERSION_PATCH, + PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCHLEVEL, ABI_CLASS_VIDEODRV, ABI_VIDEODRV_VERSION, MOD_CLASS_VIDEODRV, |