Skip to content

Commit

Permalink
[VirtIO] Redefine ENOSPC to common Linux errno
Browse files Browse the repository at this point in the history
The VirtIO\osdep.h header file defines ENOSPC as 1. On Windows this equates
to ERROR_INVALID_FUNCTION. This commit redefines ENOSPC to use the more
typical Linux definition of 28.

Signed-off-by: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com>
  • Loading branch information
benyamin-codez authored and YanVugenfirer committed Oct 8, 2024
1 parent 51a0d0d commit 4d13d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtIO/osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <ntddk.h>

#if !defined(ENOSPC)
#define ENOSPC 1
#define ENOSPC 28
#endif

#if !defined(__cplusplus) && !defined(bool)
Expand Down

0 comments on commit 4d13d16

Please sign in to comment.