1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Turn -b (BSD socket compat mode) back on by default, as we don't have TLI/XTI

This commit is contained in:
Alfred Perlstein 2001-04-13 23:20:16 +00:00
parent 8ba5eeb286
commit f0cad56fd7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75497
2 changed files with 19 additions and 0 deletions

View File

@ -152,7 +152,11 @@ int newstyle; /* newstyle of passing arguments (by value) */
int Cflag = 0; /* ANSI C syntax */
int CCflag = 0; /* C++ files */
static int allfiles; /* generate all files */
#if defined(__FreeBSD__) || defined(__NetBSD__)
int tirpcflag = 0; /* generating code for tirpc, by default */
#else
int tirpcflag = 1; /* generating code for tirpc, by default */
#endif
xdrfunc *xdrfunc_head = NULL; /* xdr function list */
xdrfunc *xdrfunc_tail = NULL; /* xdr function list */
pid_t childpid;
@ -1170,7 +1174,11 @@ parseargs(argc, argv, cmd)
* generating backward compatible
* code
*/
#if defined(__FreeBSD__) || defined(__NetBSD__)
tirpcflag = 1;
#else
tirpcflag = 0;
#endif
break;
case 'I':
@ -1266,7 +1274,9 @@ parseargs(argc, argv, cmd)
}
} else { /* 4.1 mode */
pmflag = 0; /* set pmflag only in tirpcmode */
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
inetdflag = 1; /* inetdflag is TRUE by default */
#endif
if (cmd->nflag) { /* netid needs TIRPC */
warnx("cannot use netid flag without TIRPC");
return (0);

View File

@ -246,6 +246,15 @@ Generate transport specific
.Tn RPC
code for older versions
of the operating system.
.Pp
Note: in
.Fx ,
this compatibility flag is turned on by
default since
.Fx
supports only the older
.Tn ONC RPC
library.
.It Fl c
Compile into
.Tn XDR