wininet: Include <unistd.h> in case we need off_t for zlib.
jacek at codeweavers.com
Mon Feb 16 04:19:50 CST 2015
On 02/15/15 17:16, Gerald Pfeifer wrote:
> After commit 5436fef80722fe7896aed5e659c31fdade4ef5b3
> Author: Jacek Caban <jacek at codeweavers.com>
> Date: Fri Feb 13 12:12:29 2015 +0100
> wininet: Always use winsock sockets.
> FreeBSD not longer builds due to the following change:
> #include "config.h"
> -#include "wine/port.h"
> -#if defined(__MINGW32__) || defined (_MSC_VER)
> -#include <ws2tcpip.h>
> +#ifdef HAVE_ZLIB
> +# define Z_SOLO
> +# include <zlib.h>
> zlib.h on FreeBSD 10.x uses off_t, but at this point this is not
> defined yet. Including unistd.h before including zlib.h addresses
I'd expect zlib.h to handle its dependences, it's probably Z_SOLO that's
doesn't work on FreeBSD. Could you try my recent wininet patches? They
should fix the build.
More information about the wine-devel