linuxkpi: Define EBADSLT to 57

This is the same error code as Linux.

As emaste@ noted in the review, FreeBSD defines the following errno
values in `sys/errno.h`:
* 56 is `EISCONN`
* 57 is `ENOTCONN`

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D37935
This commit is contained in:
Jean-Sébastien Pédron 2023-01-02 23:48:16 +01:00
parent cf8f392260
commit e8ce32bea3
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -34,6 +34,7 @@
#include <sys/errno.h>
#define EBADRQC 56 /* Bad request code */
#define EBADSLT 57 /* Invalid slot */
#define ECHRNG EDOM
#define ETIME ETIMEDOUT