Skip to content

Commit

Permalink
Fix sendfilev test for better C99 compatibility
Browse files Browse the repository at this point in the history
Implicit int as a language feature was removed in 1999, so this
check can incorrectly fail with C99 compilers even if the sendfilev
function is actually present.
  • Loading branch information
fweimer-rh authored and portante committed Nov 28, 2022
1 parent feae3f3 commit dc7c68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE[#include <sys/byteorder.h>
# Linux 2.6 does not have sendfilev
AC_MSG_CHECKING(sendfilev)
AC_LINK_IFELSE([AC_LANG_SOURCE[#include <sys/sendfile.h>
main() {int i=sendfilev(1,0, 1, 0);}]],
int main() {int i=sendfilev(1,0, 1, 0);}]],
[AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_SENDFILEV],[1],[Have sendfilev])
],
Expand Down

0 comments on commit dc7c68a

Please sign in to comment.