commit: 5a0c91fb4737b317ce5e1bed96eb55931574e8ef
parent 5e7c586b21816f9b353c747e84cc97ba093cb080
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 12 Oct 2024 15:41:59 +0200
configure: Remove unused test for splice()
Diffstat:
2 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/configure b/configure
@@ -223,7 +223,6 @@ if ! check_header sys/sysmacros.h; then
target_filter="${target_filter} -e cmd/mknod"
fi
-check_conftest configure.d/splice.c && CFLAGS="${CFLAGS} -DHAS_SPLICE"
check_conftest configure.d/sendfile_linux.c && CFLAGS="${CFLAGS} -DHAS_SENDFILE"
check_conftest configure.d/copy_file_range.c && CFLAGS="${CFLAGS} -DHAS_COPY_FILE_RANGE"
diff --git a/configure.d/splice.c b/configure.d/splice.c
@@ -1,18 +0,0 @@
-// utils-std: Collection of commonly available Unix tools
-// SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
-// SPDX-License-Identifier: MPL-2.0
-
-// Because that's what our utilities will use :)
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SOURCE // for splice
-
-#include <fcntl.h> // splice
-#include <stdint.h> // SIZE_MAX
-#include <unistd.h> // ssize_t
-
-ssize_t
-test(int in, int out)
-{
- off_t in_pos = 0, out_pos = 0;
- return splice(in, &in_pos, out, &out_pos, SIZE_MAX, 0);
-}