Merge pull request #162 from carlsborg/master
fix has_sendfile ifdef, use the correct defined constant
This commit is contained in:
commit
dfdb6a1930
@ -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 */
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user