[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/03: configure: tuned Linux sendfile dete
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/03: configure: tuned Linux sendfile detection |
Date: |
Sun, 01 Oct 2017 20:39:22 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 23c00cd81ec5515462e33c3729fb954d9cc8eb81
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Oct 1 19:51:10 2017 +0300
configure: tuned Linux sendfile detection
---
configure.ac | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index e4810e62..e4b6f48e 100644
--- 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();
]]
)
],
--
To stop receiving notification emails like this one, please contact
address@hidden