diff options
Diffstat (limited to 'src/compat-api.h')
-rw-r--r-- | src/compat-api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index 64e3736c..05797a08 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -30,6 +30,7 @@ #include <xorg-server.h> #include <xorgVersion.h> +#include <xf86Module.h> #include <picturestr.h> #ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR @@ -48,6 +49,10 @@ #define xf86ScrnToScreen(s) ((s)->pScreen) #endif +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 22 +#define HAVE_NOTIFY_FD 1 +#endif + #ifndef XF86_SCRN_INTERFACE #define SCRN_ARG_TYPE int @@ -250,4 +255,9 @@ static inline void FreePixmap(PixmapPtr pixmap) #define PixmapSyncDirtyHelper(d, dd) PixmapSyncDirtyHelper(d) #endif +#if !HAVE_NOTIFY_FD +#define SetNotifyFd(fd, cb, mode, data) AddGeneralSocket(fd); +#define RemoveNotifyFd(fd) RemoveGeneralSocket(fd) +#endif + #endif |