18 lines
407 B
Plaintext
18 lines
407 B
Plaintext
$NetBSD: patch-ae,v 1.7 2015/03/10 05:16:28 mef Exp $
|
|
|
|
Make it build on FreeBSD and DragonFly
|
|
|
|
--- src/network_worker.cpp.orig 2010-01-01 13:16:49.000000000 +0000
|
|
+++ src/network_worker.cpp
|
|
@@ -37,6 +37,10 @@
|
|
#include <deque>
|
|
#include <sstream>
|
|
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
+#undef HAVE_SENDFILE
|
|
+#endif
|
|
+
|
|
#ifdef HAVE_SENDFILE
|
|
#include <sys/sendfile.h>
|
|
#include <netinet/in.h>
|