Howdy,
The compile is broken on OpenBSD in httpapi/httpapi_main.c: gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -I/usr/local/include -I/usr/local/include -I/usr/local/include/libpng -o httpapi_main.o httpapi_main.c In file included from ../../include/http.h:25, from httpapi_main.c:27: ../../include/ws2tcpip.h:60: error: conflicting types for `socklen_t' /usr/include/sys/types.h:163: error: previous declaration of `socklen_t' *** Error code 1
Stop in /home/austin/wine-git/dlls/httpapi (line 92 of /usr/share/mk/sys.mk).
Talking with Vincent, narrowed it down to the file ignoring Wine's definition of socklen_t.
Is there any reason we shouldn't be defining it, like we already do in iphlpapi/iphlpapi_main.c, winhttp/net.c, wininet/netconnection.c, wsock32/protocol.c and server/sock.c? E.g.,:
diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index 7b29a15..b96f730 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
+#define USE_WS_PREFIX + #include "config.h"
#include <stdarg.h>