diff options
author | Simon A. F. Lund <os@safl.dk> | 2022-05-17 15:41:28 +0200 |
---|---|---|
committer | Simon A. F. Lund <os@safl.dk> | 2022-05-17 17:07:17 +0200 |
commit | 45969ce39dc764e12541681ed3ddbafcf7f0de85 (patch) | |
tree | 406972bc134bd9c141cdcc8d95c95694ea3e4969 | |
parent | b2d28aea257d0eee40bcdc5c0613712c9e4e8184 (diff) | |
download | liburing-45969ce39dc764e12541681ed3ddbafcf7f0de85.tar.gz liburing-45969ce39dc764e12541681ed3ddbafcf7f0de85.tar.bz2 |
configure: fix compile-checks for statx
This is related to the the issue reported here:
https://github.com/axboe/liburing/issues/578
A fix for the reported issue changed ``linux/stat.h`` to ``sys/stat.h``
in ``test/statx.c``, however, it did not change the compile-check in
``configure``.
This change is needed on Alpine Linux / muslc, where 'statx' is detected
by ``configure/compile-check`` but ``sys/stat.h`` does not provide what
is needed by ``test/statx.c``. Resulting in a build-error.
This changes the compiler-check to match the usage in `tests/statx.c`,
thereby fixing the build-error on Alpine Linux / muslc.
Signed-off-by: Simon A. F. Lund <os@safl.dk>
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -300,7 +300,6 @@ cat > $TMPC << EOF #include <unistd.h> #include <fcntl.h> #include <string.h> -#include <linux/stat.h> int main(int argc, char **argv) { struct statx x; @@ -321,7 +320,7 @@ cat > $TMPC << EOF #include <unistd.h> #include <fcntl.h> #include <string.h> -#include <linux/stat.h> +#include <sys/stat.h> int main(int argc, char **argv) { struct statx x; |