http://bugs.winehq.org/show_bug.cgi?id=16665
Summary: build broken in dlls/winhttp/cookie.c on OpenBSD 4.4 Product: Wine Version: 1.1.11 Platform: PC OS/Version: OpenBSD Status: NEW Keywords: patch, source Severity: major Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
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 -g -O2 -o cookie.o cookie.c In file included from winhttp_private.h:30, from cookie.c:29: /usr/include/netinet/in.h:136: error: syntax error before "in_addr_t" /usr/include/netinet/in.h:213: error: syntax error before "u_int8_t" /usr/include/netinet/in.h:217: error: syntax error before "int8_t" /usr/include/netinet/in.h:232: error: syntax error before "int8_t" In file included from /usr/include/netinet/in.h:698, from winhttp_private.h:30, from cookie.c:29: /usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t" /usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t" /usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t" /usr/include/netinet6/in6.h:514: error: syntax error before "u_int32_t" /usr/include/netinet6/in6.h:752: error: syntax error before '*' token /usr/include/netinet6/in6.h:754: error: syntax error before '*' token /usr/include/netinet6/in6.h:755: error: syntax error before "u_int8_t" /usr/include/netinet6/in6.h:756: error: syntax error before "u_int8_t" /usr/include/netinet6/in6.h:770: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:771: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:773: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:774: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:776: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:778: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:780: error: syntax error before "socklen_t" /usr/include/netinet6/in6.h:782: error: syntax error before "inet6_rth_space" /usr/include/netinet6/in6.h:783: error: syntax error before "socklen_t" *** Error code 1
easy fix: diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h index 5043235..511e124 100644 --- a/dlls/winhttp/winhttp_private.h +++ b/dlls/winhttp/winhttp_private.h @@ -26,6 +26,7 @@ #include "wine/list.h" #include "wine/unicode.h"
+#include <sys/types.h> + #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif
Already submitted to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=16665
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #1 from Austin English austinenglish@gmail.com 2008-12-29 09:27:07 --- Fix committed (87cc3e19bc6faea5d2ca845df200c6abfec079b3).
http://bugs.winehq.org/show_bug.cgi?id=16665
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org 2009-01-02 10:34:28 --- Closing bugs fixed in 1.1.12.