X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cb1bcc7ebbb84a056a63fd09e47c456509c52411..6ab6d4bfc11512565c77ee6ab322b4e214d2074d:/options.c diff --git a/options.c b/options.c index 4f2f5284..9bb22f45 100644 --- a/options.c +++ b/options.c @@ -75,7 +75,14 @@ int modify_window=0; int blocking_io=0; /** Global options set from command line. **/ -struct global_opts global_opts; +struct global_opts global_opts = { +#ifdef INET6 + 0, /* af_hint -- allow any protocol */ +#else + AF_INET, /* af_hint -- prefer IPv4 */ +#endif + 0, /* no_detach */ +}; int read_batch=0; /* dw */ int write_batch=0; /* dw */