diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-02-16 13:37:56 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-02-20 09:35:41 +0100 |
commit | 4ea5c4d5fa1dcb125137bcb76b402490ac134b4f (patch) | |
tree | ef33c170a9d677f52a78cd55345705768569cd81 /src/common_compat.h | |
parent | 1899b0896dae4ce86c9871fa491b464f6af88526 (diff) |
Build fixes
A couple of more build fixes for older X servers.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'src/common_compat.h')
-rw-r--r-- | src/common_compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common_compat.h b/src/common_compat.h index 5c46a73..3cd3139 100644 --- a/src/common_compat.h +++ b/src/common_compat.h @@ -20,5 +20,18 @@ #define CONST_ABI_16_TO_19 #endif +#if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 13) +static inline void +xf86SaveModeContents(DisplayModePtr intern, const DisplayModeRec *mode) +{ + *intern = *mode; + intern->prev = intern->next = NULL; + intern->name = NULL; + intern->PrivSize = 0; + intern->PrivFlags = 0; + intern->Private = NULL; +} +#endif + #endif |