--- http/servlet/http_servlet_file.c.orig	2009-05-14 07:36:02.000000000 +1000
+++ http/servlet/http_servlet_file.c	2018-04-20 20:44:48.000000000 +1000
@@ -404,7 +404,7 @@ fail_errno:	http_response_send_errno_err
 	}
 
 	/* Send file contents, using sendfile(2) if possible */
-#if !defined(__CYGWIN__) && !defined(WIN32)
+#if !defined(__CYGWIN__) && !defined(WIN32) && !defined(__APPLE__)
 	if ((sock = http_response_get_raw_socket(resp)) != -1) {
 		struct http_servlet_file_serve_state state;
 
