TIP: Click on subject to list as thread! ANSI
echo: binkd
to: DAN CROSS
from: MAX VASILYEV
date: 2020-02-08 14:03:00
subject: binkd error

Hello Dan!

06 Feb 20 15:06, you wrote to Tommi Koivula:

 TK>> https://github.com/fat-dragon/binkd.git and it compiled fine with
 TK>> gcc 3.3.5.
 DC> Ah, wonderful to hear. Thanks, other fellow.  :-)
Some words about your patch.

#ifndef sockaddr_storage
#define sockaddr_storage sockaddr_in
#endif

You don't need to add #ifndef here. There is no sockaddr_storage defined, if
you have an old compiler without HAVE_GETADDRINFO/HAVE_GETADDRINFO.

#ifdef AF_INET6
  invalidAddresses[1].ss_family = AF_INET6;
#endif

It works with old gcc, but not with MSVC6.
I suggest to change it to #ifdef _SS_MAXSIZE.

WBR, Max. piwamoto!писем-нет
--- ск
чаю по FleetStreet'
 :-(((
* Origin: Personal Reality (2:5057/77)

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™.