[PATCH libdrm] Fix strict aliasing violation in drmHandleEvent

2016-10-05 Thread Felix Janda
&buffer[i], e and vblank have been pointers of different types but refering to the same memory location, thus breaking the strict aliasing rules. Fix this by working exclusively with pointers to char. Signed-off-by: Felix Janda --- xf86drmMode.c | 40 ---

[PATCH] xf86drm: include for PATH_MAX

2015-09-26 Thread Felix Janda
fixes compilation error with musl libc Signed-off-by: Felix Janda --- xf86drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xf86drm.c b/xf86drm.c index a9f5c29..c1cab1b 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -45,6 +45,7 @@ #include #include #include +#include #include