summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon A. F. Lund <os@safl.dk>2022-05-17 15:41:28 +0200
committerSimon A. F. Lund <os@safl.dk>2022-05-17 17:07:17 +0200
commit45969ce39dc764e12541681ed3ddbafcf7f0de85 (patch)
tree406972bc134bd9c141cdcc8d95c95694ea3e4969
parentb2d28aea257d0eee40bcdc5c0613712c9e4e8184 (diff)
downloadliburing-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-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index f2bf041..2c2441b 100755
--- a/configure
+++ b/configure
@@ -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;