summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/getrpcent.c
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-14 06:07:31 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-14 06:07:31 +0000
commitc3a27f5095a50bef9e56f19eeed1176319e189e2 (patch)
tree80804af6dd3e113d1a37cd648a5b50fdd26b78f0 /libc/inet/rpc/getrpcent.c
parente9efa23ae121c8976e5dc2bbcf29e029b5087e76 (diff)
Some makefile updates to make it behave a bit better/consistently.
-Erik
Diffstat (limited to 'libc/inet/rpc/getrpcent.c')
-rw-r--r--libc/inet/rpc/getrpcent.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/inet/rpc/getrpcent.c b/libc/inet/rpc/getrpcent.c
index e0b7342cc..b3b3ece4c 100644
--- a/libc/inet/rpc/getrpcent.c
+++ b/libc/inet/rpc/getrpcent.c
@@ -60,7 +60,7 @@ struct rpcdata {
static struct rpcent *interpret();
struct hostent *gethostent();
char *inet_ntoa();
-#ifndef linux
+#ifndef __linux__
static char *index();
#else
char *index();
@@ -102,7 +102,7 @@ getrpcbynumber(number)
}
struct rpcent *
-#ifdef linux
+#ifdef __linux__
getrpcbyname(const char *name)
#else
getrpcbyname(name)
@@ -125,7 +125,7 @@ getrpcbyname(name)
return (NULL);
}
-#ifdef linux
+#ifdef __linux__
void
#endif
setrpcent(f)
@@ -145,7 +145,7 @@ setrpcent(f)
d->stayopen |= f;
}
-#ifdef linux
+#ifdef __linux__
void
#endif
endrpcent()
@@ -182,7 +182,7 @@ getrpcent()
return interpret(d->line, strlen(d->line));
}
-#ifdef linux
+#ifdef __linux__
static char *
firstwhite(s)
char *s;
@@ -224,7 +224,7 @@ interpret(val, len)
return (getrpcent());
}
*cp = '\0';
-#ifdef linux
+#ifdef __linux__
if ((cp = firstwhite(p)))
*cp++ = 0;
else
@@ -245,7 +245,7 @@ interpret(val, len)
cp++;
d->rpc.r_number = atoi(cp);
q = d->rpc.r_aliases = d->rpc_aliases;
-#ifdef linux
+#ifdef __linux__
if ((cp = firstwhite(cp)))
*cp++ = '\0';
#else
@@ -266,7 +266,7 @@ interpret(val, len)
}
if (q < &(d->rpc_aliases[MAXALIASES - 1]))
*q++ = cp;
-#ifdef linux
+#ifdef __linux__
if ((cp = firstwhite(cp)))
*cp++ = '\0';
#else