summaryrefslogtreecommitdiff
path: root/libeio.m4
diff options
context:
space:
mode:
authorroot <root>2010-01-07 17:18:08 +0000
committerroot <root>2010-01-07 17:18:08 +0000
commitf729dd40abcc81fdd8d940a156fec32c9ca8e4d1 (patch)
tree30f6fd929c184daa88b27720653c46bd27d862b4 /libeio.m4
parentdc38ef7a470a68fb46d7e43d950e6c7cc4d55006 (diff)
*** empty log message ***
Diffstat (limited to 'libeio.m4')
-rw-r--r--libeio.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/libeio.m4 b/libeio.m4
index e80e008..0a737d3 100644
--- a/libeio.m4
+++ b/libeio.m4
@@ -64,7 +64,7 @@ AC_CACHE_CHECK(for sendfile, ac_cv_sendfile, [AC_LINK_IFELSE([
# include <sys/types.h>
#if __linux
# include <sys/sendfile.h>
-#elif __freebsd || defined __APPLE__
+#elif __FreeBSD__ || defined __APPLE__
# include <sys/socket.h>
# include <sys/uio.h>
#elif __hpux
@@ -80,7 +80,7 @@ int main(void)
ssize_t res;
#if __linux
res = sendfile (fd, fd, offset, count);
-#elif __freebsd
+#elif __FreeBSD__
res = sendfile (fd, fd, offset, count, 0, &offset, 0);
#elif __hpux
res = sendfile (fd, fd, offset, count, 0, 0);