From c3a27f5095a50bef9e56f19eeed1176319e189e2 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Sun, 14 May 2000 06:07:31 +0000 Subject: Some makefile updates to make it behave a bit better/consistently. -Erik --- libc/inet/rpc/getrpcent.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libc/inet/rpc/getrpcent.c') 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 -- cgit v1.2.3