Add __NetBSD__ in a couple of places to allow this program to

compile under NetBSD, but behave like FreeBSD. For the time being,
look for NetBSD's cpp in /usr/bin.
This commit is contained in:
John Birrell 1998-01-09 06:32:54 +00:00
parent f1d896d117
commit d7c089b7a9

View File

@ -35,7 +35,7 @@
static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
#endif
static const char rcsid[] =
"$Id$";
"$Id: rpc_main.c,v 1.6 1997/08/06 06:47:40 charnier Exp $";
#endif
/*
@ -68,7 +68,7 @@ static void clnt_output __P(( char *, char *, int, char * ));
void c_initialize __P(( void ));
#ifndef __FreeBSD__
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
char * rindex();
#endif
@ -86,6 +86,8 @@ static void s_output __P(( int, char **, char *, char *, int, char *, int, int )
#define SVR4_CPP "/usr/ccs/lib/cpp"
#ifdef __FreeBSD__
#define SUNOS_CPP "/usr/libexec/cpp"
#elif defined(__NetBSD__)
#define SUNOS_CPP "/usr/bin/cpp"
#else
#define SUNOS_CPP "/usr/lib/cpp"
#endif
@ -1358,7 +1360,7 @@ remote procedures\n");
exit(1);
}
#ifndef __FreeBSD__
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
char *
rindex(sp, c)
register char *sp, c;