From: SourceForge.net <no...@so...> - 2003-04-27 20:54:21
|
Bugs item #728598, was opened at 2003-04-27 22:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103248&aid=728598&group_id=3248 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Lars Luthman (larsl) Assigned to: Nobody/Anonymous (nobody) Summary: Solaris and recvfrom(), what type is the sixth parameter? Initial Comment: Building BZFlag on Solaris with GCC 3.2.1 failed, because the sixth parameter to recvfrom() should be a socklen_t*, but an int* was passed. I fixed this by changing lines 71-73 in include/network.h from #if defined(__FreeBSD__) #define AddrLen socklen_t #endif to #if defined(__FreeBSD__) || defined(sun) #define AddrLen socklen_t #endif Now it works for me. However, I'm not really sure if this is correct - 'man recvfrom' says that the sixth parameter actually should be an int*. If anyone with more Solaris experience than me could take a look at this, that would be great. I only built it to see if it would work - the Solaris computer that I used is way to slow to actually run BZFlag. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103248&aid=728598&group_id=3248 |