commit 23c00cd81ec5515462e33c3729fb954d9cc8eb81
parent e127b8a6c4a0a72b5786c50a9b46196143e7af6c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 1 Oct 2017 19:51:10 +0300
configure: tuned Linux sendfile detection
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1248,12 +1248,13 @@ static void empty_func(void)
ssize_t sendfile(int, int, off_t*, size_t);
]],
[[
- int fd1, fd2;
+ int fd1=0, fd2=2;
off_t o = 0;
size_t s = 5;
ssize_t r;
r = sendfile (fd1, fd2, &o, s);
- empty_func();
+ if (r)
+ empty_func();
]]
)
],