x11 updates

This commit is contained in:
2022-04-09 10:01:54 +02:00
parent ee0f1b4ef7
commit 1a439143e3
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# the defintion of ERESTART is behind a check for _KERNEL, but
# defining that causes errno to not be defined. fortunately, there's
# an alternative switch. unfortunately, those differ by platform and
# _WANT_KERNEL_ERRNO is too recent to be part of any release, so just
# define ERESTART if we still don't have it after including errno.h
#
--- libkms/vmwgfx.c.orig 2018-05-09 22:26:03 UTC
+++ libkms/vmwgfx.c
@@ -26,10 +26,18 @@
**************************************************************************/
+#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
+#define _WANT_KERNEL_ERRNO
+#elif defined(__DragonFly__)
+#define _KERNEL_STRUCTURES
+#endif
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "internal.h"
+#ifndef ERESTART
+#define ERESTART (-1)
+#endif
#include "xf86drm.h"
#include "libdrm_macros.h"

View File

@@ -0,0 +1,11 @@
--- ./nouveau/Makefile.in.orig 2018-10-16 16:49:16.000000000 +0200
+++ ./nouveau/Makefile.in 2022-04-08 16:19:24.374500000 +0200
@@ -558,7 +558,7 @@
-I$(top_srcdir) \
$(PTHREADSTUBS_CFLAGS) \
-I$(top_srcdir)/include/drm \
- -DDEBUG
+
libdrm_nouveau_la_LTLIBRARIES = libdrm_nouveau.la
libdrm_nouveau_ladir = $(libdir)