httpapi compile broken on OpenBSD
austinenglish at gmail.com
Mon Mar 30 23:43:55 CDT 2009
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,
../../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
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
More information about the wine-devel