summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-01-09 06:32:54 +0000
committerjb <jb@FreeBSD.org>1998-01-09 06:32:54 +0000
commitac43f6aba8c583868a1b87c4e8b6f78b894280ce (patch)
treed67b7313b332e800de34cc4a18cd365b190d3737 /usr.bin/rpcgen
parent2e1938f076c03ba21731ed8299cf04d2cb383666 (diff)
downloadFreeBSD-src-ac43f6aba8c583868a1b87c4e8b6f78b894280ce.zip
FreeBSD-src-ac43f6aba8c583868a1b87c4e8b6f78b894280ce.tar.gz
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.
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index 10539db..a4cd996 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -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;
OpenPOWER on IntegriCloud