macos x support

This commit is contained in:
Felix von Leitner 2004-01-08 17:12:28 +00:00
parent e8c96ef3a7
commit 5ea24edfec
1 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
#include "havebsdsf.h"
#ifdef HAVE_BSDSENDFILE
/* for MacOS X. Yep, they blew it again. */
#define SENDFILE 1
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
@ -7,7 +12,6 @@
#include <stdlib.h>
#include "havealloca.h"
#include "iob_internal.h"
#include "havebsdsf.h"
int64 iob_send(int64 s,io_batch* b) {
iob_entry* e,* last;
@ -16,7 +20,6 @@ int64 iob_send(int64 s,io_batch* b) {
long i;
long headers;
#ifdef HAVE_BSDSENDFILE
#define SENDFILE 1
long trailers;
#endif