We don't need `#include <errno.h>` in these files anymore. For now, `errno` variable is only allowed to be used in `src/syscall.c` to separate the dependency from other liburing sources. Signed-off-by: Ammar Faizi <ammar.faizi@xxxxxxxxxxxxxxxxxxxxx> --- src/queue.c | 1 - src/register.c | 1 - src/setup.c | 1 - 3 files changed, 3 deletions(-) diff --git a/src/queue.c b/src/queue.c index e85ea1d..24ff8bc 100644 --- a/src/queue.c +++ b/src/queue.c @@ -5,7 +5,6 @@ #include <sys/stat.h> #include <sys/mman.h> #include <unistd.h> -#include <errno.h> #include <string.h> #include <stdbool.h> diff --git a/src/register.c b/src/register.c index 0908e3e..2b8cbac 100644 --- a/src/register.c +++ b/src/register.c @@ -6,7 +6,6 @@ #include <sys/mman.h> #include <sys/resource.h> #include <unistd.h> -#include <errno.h> #include <string.h> #include "liburing/compat.h" diff --git a/src/setup.c b/src/setup.c index 52f3557..486a3a1 100644 --- a/src/setup.c +++ b/src/setup.c @@ -5,7 +5,6 @@ #include <sys/stat.h> #include <sys/mman.h> #include <unistd.h> -#include <errno.h> #include <string.h> #include <stdlib.h> #include <signal.h> -- 2.30.2