|
@@ -60,7 +60,7 @@ struct rpcdata {
|
|
static struct rpcent *interpret();
|
|
static struct rpcent *interpret();
|
|
struct hostent *gethostent();
|
|
struct hostent *gethostent();
|
|
char *inet_ntoa();
|
|
char *inet_ntoa();
|
|
-#ifndef linux
|
|
+#ifndef __linux__
|
|
static char *index();
|
|
static char *index();
|
|
#else
|
|
#else
|
|
char *index();
|
|
char *index();
|
|
@@ -102,7 +102,7 @@ getrpcbynumber(number)
|
|
}
|
|
}
|
|
|
|
|
|
struct rpcent *
|
|
struct rpcent *
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
getrpcbyname(const char *name)
|
|
getrpcbyname(const char *name)
|
|
#else
|
|
#else
|
|
getrpcbyname(name)
|
|
getrpcbyname(name)
|
|
@@ -125,7 +125,7 @@ getrpcbyname(name)
|
|
return (NULL);
|
|
return (NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
void
|
|
void
|
|
#endif
|
|
#endif
|
|
setrpcent(f)
|
|
setrpcent(f)
|
|
@@ -145,7 +145,7 @@ setrpcent(f)
|
|
d->stayopen |= f;
|
|
d->stayopen |= f;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
void
|
|
void
|
|
#endif
|
|
#endif
|
|
endrpcent()
|
|
endrpcent()
|
|
@@ -182,7 +182,7 @@ getrpcent()
|
|
return interpret(d->line, strlen(d->line));
|
|
return interpret(d->line, strlen(d->line));
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
static char *
|
|
static char *
|
|
firstwhite(s)
|
|
firstwhite(s)
|
|
char *s;
|
|
char *s;
|
|
@@ -224,7 +224,7 @@ interpret(val, len)
|
|
return (getrpcent());
|
|
return (getrpcent());
|
|
}
|
|
}
|
|
*cp = '\0';
|
|
*cp = '\0';
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
if ((cp = firstwhite(p)))
|
|
if ((cp = firstwhite(p)))
|
|
*cp++ = 0;
|
|
*cp++ = 0;
|
|
else
|
|
else
|
|
@@ -245,7 +245,7 @@ interpret(val, len)
|
|
cp++;
|
|
cp++;
|
|
d->rpc.r_number = atoi(cp);
|
|
d->rpc.r_number = atoi(cp);
|
|
q = d->rpc.r_aliases = d->rpc_aliases;
|
|
q = d->rpc.r_aliases = d->rpc_aliases;
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
if ((cp = firstwhite(cp)))
|
|
if ((cp = firstwhite(cp)))
|
|
*cp++ = '\0';
|
|
*cp++ = '\0';
|
|
#else
|
|
#else
|
|
@@ -266,7 +266,7 @@ interpret(val, len)
|
|
}
|
|
}
|
|
if (q < &(d->rpc_aliases[MAXALIASES - 1]))
|
|
if (q < &(d->rpc_aliases[MAXALIASES - 1]))
|
|
*q++ = cp;
|
|
*q++ = cp;
|
|
-#ifdef linux
|
|
+#ifdef __linux__
|
|
if ((cp = firstwhite(cp)))
|
|
if ((cp = firstwhite(cp)))
|
|
*cp++ = '\0';
|
|
*cp++ = '\0';
|
|
#else
|
|
#else
|