Merge pull request #162 from carlsborg/master

fix has_sendfile ifdef, use the correct defined constant
This commit is contained in:
Bruce A. Mah 2014-05-05 11:15:22 -07:00
commit dfdb6a1930

View File

@ -221,11 +221,11 @@ Nwrite(int fd, const char *buf, size_t count, int prot)
int
has_sendfile(void)
{
#if defined(HAS_SENDFILE)
#if defined(HAVE_SENDFILE)
return 1;
#else /* HAS_SENDFILE */
#else /* HAVE_SENDFILE */
return 0;
#endif /* HAS_SENDFILE */
#endif /* HAVE_SENDFILE */
}