From 8bc56fe0fb16e2d421b6651b731045e14cf926ef Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Mon, 7 Jun 2021 10:24:11 +0300 Subject: [PATCH] _WANT_KERNEL_ERRNO must be defined in FreeBSD for ERESTART to be used In FreeBSD's errno.h ERESTART is not defined by default, only when the user requests the pseudo-errors returned inside the kernel to be enabled. As a result the block where drmCommandWriteRead is called returns compile error. Defined _WANT_KERNEL_ERRNO to fix it (see FreeBSD's /usr/include/errno.h) Signed-off-by: Eleni Maria Stea Reviewed-by: Eric Engestrom --- libkms/vmwgfx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c index f0e40be7..1984399c 100644 --- a/libkms/vmwgfx.c +++ b/libkms/vmwgfx.c @@ -25,6 +25,9 @@ * **************************************************************************/ +#ifdef __FreeBSD__ +#define _WANT_KERNEL_ERRNO +#endif #include #include