From 9315276edc5d241369442e29c94091f4c1c8faa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=2E=20Stani=C4=87?= Date: Thu, 30 Apr 2020 16:23:30 +0200 Subject: [PATCH] fix missing '#include ' in 'src/include/liburing.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make failed on musl libc system when entering test subdir with this: ----- make[1]: Entering directory '/work/devel/liburing/test' CC poll In file included from poll.c:12: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from poll.c:15: ../src/include/liburing.h:339:35: error: unknown type name 'mode_t' 339 | const char *path, int flags, mode_t mode) | ^~~~~~ make[1]: *** [Makefile:39: poll] Error 1 make[1]: Leaving directory '/work/devel/liburing/test' make: *** [Makefile:13: all] Error 2 ----- adding #include to src/include/liburing.h fixes build Signed-off-by: Milan P. Stanić --- src/include/liburing.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/liburing.h b/src/include/liburing.h index 56e32d7..dd85f7b 100644 --- a/src/include/liburing.h +++ b/src/include/liburing.h @@ -8,6 +8,7 @@ extern "C" { #include #include +#include #include #include #include -- 2.24.3