1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Index: git/src/drmmode_display.c
===================================================================
--- git.orig/src/drmmode_display.c
+++ git/src/drmmode_display.c
@@ -28,6 +28,8 @@
* Ian Elliott <ianelliottus@yahoo.com>
*/
+#include <stdint.h>
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -1807,7 +1809,7 @@ drmmode_uevent_fini(ScrnInfoPtr pScrn)
static void
drmmode_wakeup_handler(pointer data, int err, pointer p)
{
- int fd = (int)data;
+ int fd = (int)(intptr_t)data;
fd_set *read_mask = p;
if (err < 0)
@@ -1821,13 +1823,13 @@ void drmmode_init_wakeup_handler(int fd)
{
AddGeneralSocket(fd);
RegisterBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA,
- drmmode_wakeup_handler, (pointer)fd);
+ drmmode_wakeup_handler, (pointer)(intptr_t)fd);
}
void drmmode_fini_wakeup_handler(int fd)
{
RemoveBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA,
- drmmode_wakeup_handler, (pointer)fd);
+ drmmode_wakeup_handler, (pointer)(intptr_t)fd);
RemoveGeneralSocket(fd);
}
|