wok-current view xorg-xf86-video-intel/stuff/patch-src_compat-api.h @ rev 25653
lzo needed from fsarchiver
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 13 07:22:29 2024 +0100 (6 months ago) |
parents | |
children |
line source
1 $NetBSD$
3 --- a/src/compat-api.h 2014-11-18 21:50:39.000000000 +0000
4 +++ b/src/compat-api.h
5 @@ -30,6 +30,7 @@
7 #include <xorg-server.h>
8 #include <xorgVersion.h>
9 +#include <xf86Module.h>
11 #include <picturestr.h>
12 #ifndef GLYPH_HAS_GLYPH_PICTURE_ACCESSOR
13 @@ -42,6 +43,10 @@
14 #define xf86ScrnToScreen(s) screenInfo.screens[(s)->scrnIndex]
15 #endif
17 +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 22
18 +#define HAVE_NOTIFY_FD 1
19 +#endif
20 +
21 #ifndef XF86_SCRN_INTERFACE
23 #define SCRN_ARG_TYPE int
24 @@ -223,4 +228,14 @@ static inline void FreePixmap(PixmapPtr
25 dstx, dsty)
26 #endif
28 +#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(22, 0)
29 +#define OsBlockSIGIO()
30 +#define OsReleaseSIGIO()
31 +#endif
32 +
33 +#if !HAVE_NOTIFY_FD
34 +#define SetNotifyFd(fd, cb, mode, data) AddGeneralSocket(fd);
35 +#define RemoveNotifyFd(fd) RemoveGeneralSocket(fd)
36 +#endif
37 +
38 #endif