When INET6 is not defined, meaning that IPv6 is not supported, need to
authorDavid Dykstra <dwd@samba.org>
Fri, 14 Dec 2001 18:25:51 +0000 (18:25 +0000)
committerDavid Dykstra <dwd@samba.org>
Fri, 14 Dec 2001 18:25:51 +0000 (18:25 +0000)
commit6ab6d4bfc11512565c77ee6ab322b4e214d2074d
treede36f52ec75f77496d6cfbdb59a6413f0af99382
parentcb1bcc7ebbb84a056a63fd09e47c456509c52411
When INET6 is not defined, meaning that IPv6 is not supported, need to
initalize the global_opts.af_hint to AF_INET or systems such as Linux that
have a native getaddrinfo() because they support IPv6 will attempt to
create IPv6 sockets.  This brings up a problem with the new global_opts
structure; in order to initialize them to a value other than 0, we need to
explicitly initialize them all in an order that matches the order in
rsync.h.  I think that's more inconvenient & error prone than keeping
global variables.
options.c