Dmitry Sivachenko trtrmitya at gmail.com
Fri Oct 11 13:14:20 CEST 2013

FreeBSD does not have sendfile.h:

#ifdef __linux__
#include <sys/sendfile.h>
#include <sys/epoll.h>
#elif defined(__FreeBSD_kernel__)
#include <sys/sendfile.h>
#include <sys/event.h>
#elif defined(__sun__)

From sendfile(2):

     #include <sys/types.h>
     #include <sys/socket.h>
     #include <sys/uio.h>

Now 1.9.18 does not build under FreeBSD:

/usr/local/bin/python2.7 uwsgiconfig.py --build
In file included from core/protocol.c:1:
In file included from core/utils.c:1:
./uwsgi.h:314:10: fatal error: 'sys/sendfile.h' file not found
#include <sys/sendfile.h>
./uwsgi.h:314:10: fatal error: 'sys/sendfile.h' file not found
#include <sys/sendfile.h>
1 error generated.

Also you messed up logic with __FreeBSD__ and __FreeBSD_kernel__
(FreeBSD has both defined)

On 11.10.2013, at 9:30, Roberto De Ioris <roberto at unbit.it> wrote:

> Hi, a new uWSGI release for 1.9 tree is available:
> http://uwsgi-docs.readthedocs.org/en/latest/Changelog-1.9.18.html
> Remember that from now on the license is GPL2 + linking exception instead
> of GPL2
> -- 
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

More information about the uWSGI mailing list