http://bugs.winehq.org/show_bug.cgi?id=16661
Summary: build broken in dlls/iphlpapi/ipstats.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
Created an attachment (id=18289) --> (http://bugs.winehq.org/attachment.cgi?id=18289) openbsd patch
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 ipstats.o ipstats.c ipstats.c: In function `getIPStats': ipstats.c:484: warning: implicit declaration of function `sysctlbyname' ipstats.c: In function `getTCPStats': ipstats.c:640: error: `TCPCTL_STATS' undeclared (first use in this function) ipstats.c:640: error: (Each undeclared identifier is reported only once ipstats.c:640: error: for each function it appears in.) ipstats.c:643: error: storage size of `tcp_stat' isn't known ipstats.c:657: error: `PR_SLOWHZ' undeclared (first use in this function) ipstats.c:643: warning: unused variable `tcp_stat' ipstats.c: In function `getNumRoutes': ipstats.c:1014: error: `RTF_MULTICAST' undeclared (first use in this function) ipstats.c: In function `getRouteTable': ipstats.c:1091: error: `RTF_MULTICAST' undeclared (first use in this function) ipstats.c: In function `getNumArpEntries': ipstats.c:1284: error: dereferencing pointer to incomplete type ipstats.c:1284: error: dereferencing pointer to incomplete type ipstats.c: In function `getArpTable': ipstats.c:1344: error: dereferencing pointer to incomplete type ipstats.c:1344: error: dereferencing pointer to incomplete type ipstats.c:1349: error: dereferencing pointer to incomplete type ipstats.c:1358: error: dereferencing pointer to incomplete type ipstats.c:1358: error: `SIN_PROXY' undeclared (first use in this function) *** Error code 1
Attached patch fixes it, but is not correct. If anyone would like to implement properly, I'll buy you a beer :-).