TIP: Click on subject to list as thread! ANSI
echo: binkd
to: TOMMI KOIVULA
from: DAN CROSS
date: 2020-02-02 02:27:00
subject: Re: binkd error

On 01 Feb 2020 at 01:33p, Tommi Koivula pondered and said...
 
 TK> Compiling client.c...
 TK> client.c: In function `clientmgr':
 TK> client.c:224: error: structure has no member named `sa_family'
 TK> make.exe: *** [client.o] Error 1

I'm sorry, I really have no idea.  That's been the name of the
structure member since at least BSD 4.1c, ca 1982.

My guess is that your system actually names the structure member
something else, and then #define's `sa_family` to whatever that
non-standard name is.  My workaround is to `#define ss_family sa_family`,
but that preprocessor substitution probably happens after all of
the renaming the system libraries do.

One can play games with casts.  For example, if you change line
224 of client.c to read something like:

    ((struct sockaddr *)(&invalidAddreses[0]))->sa_family = AF_INET;

It may compile.  I haven't tested that, though.

--- Mystic BBS v1.12 A44 2020/01/31 (Windows/32)
* Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.