mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
940ea28488
LFTP is a sophisticated ftp/http client, and a file transfer program supporting a number of network protocols. Like BASH, it has job control and uses the readline library for input. It has bookmarks, a built-in mirror command, and can transfer several files in parallel. It was designed with reliability in mind. Signed-off-by: Arnaud Rébillout <rebillout@syscom.ch> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
From 450ed0f38159a9944460ecff65793fe6de206df4 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Arnaud=20R=C3=A9billout?= <rebillout@syscom.ch>
|
|
Date: Mon, 25 Nov 2013 11:03:59 +0100
|
|
Subject: [PATCH] Fix posix_fallocate m4 check for cross-compilation.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
If we're cross-compiling, we can't test if the code run, we can only
|
|
test that it compiles and links. If it does, assume posix_fallocate
|
|
works, because cross-compilation for AIX or old glibc is unlikely.
|
|
|
|
Signed-off-by: Arnaud Rébillout <rebillout@syscom.ch>
|
|
---
|
|
m4/lftp.m4 | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/m4/lftp.m4 b/m4/lftp.m4
|
|
index 6d7ad9c..b38364d 100644
|
|
--- a/m4/lftp.m4
|
|
+++ b/m4/lftp.m4
|
|
@@ -271,6 +271,21 @@ AC_DEFUN([LFTP_POSIX_FALLOCATE_CHECK],[
|
|
i_cv_posix_fallocate_works=yes
|
|
], [
|
|
i_cv_posix_fallocate_works=no
|
|
+ ], [
|
|
+ dnl * Cross-compilation: we can only test if the code compiles and links.
|
|
+ dnl * If it does, assume that it works, because cross-compilation for AIX or old glibc is unlikely.
|
|
+ AC_CACHE_VAL([i_cv_posix_fallocate_works],[
|
|
+ AC_LINK_IFELSE([
|
|
+ #include <fcntl.h>
|
|
+ int main() {
|
|
+ posix_fallocate(0, 0, 0);
|
|
+ }
|
|
+ ], [
|
|
+ i_cv_posix_fallocate_works=yes
|
|
+ ], [
|
|
+ i_cv_posix_fallocate_works=no
|
|
+ ])
|
|
+ ])
|
|
])
|
|
])
|
|
if test x$i_cv_posix_fallocate_works = xyes; then
|
|
--
|
|
1.8.4.4
|
|
|