mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 07:00:11 +01:00
_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 <elene.mst@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
90c9175c81
commit
8bc56fe0fb
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@
|
|||
*
|
||||
**************************************************************************/
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#define _WANT_KERNEL_ERRNO
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue