Refine previous: can put the main -> mymain thing in the .x file, which is

both tidier and also doesn't break update builds.
This commit is contained in:
dholland 2008-09-30 06:25:22 +00:00
parent b458f98fad
commit b0188b51ef
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2008/09/30 05:20:42 dholland Exp $
# $NetBSD: Makefile,v 1.21 2008/09/30 06:25:22 dholland Exp $
.include <bsd.own.mk>
@ -8,9 +8,6 @@ BUILDSYMLINKS+= pcnfsd.8 rpc.pcnfsd.8
MLINKS= rpc.pcnfsd.8 pcnfsd.8
CPPFLAGS += -DUSER_CACHE -DWTMP -I. -DSUPPORT_UTMP -DSUPPORT_UTMPX
# hack to allow config file to be read (see PR 12758)
CPPFLAGS+=-Dmain=mymain
.if (${USE_YP} != "no")
CPPFLAGS+=-DUSE_YP
.endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcnfsd.x,v 1.4 2002/10/31 08:39:13 petrov Exp $ */
/* $NetBSD: pcnfsd.x,v 1.5 2008/09/30 06:25:22 dholland Exp $ */
/* The maximum number of bytes in a user name argument */
const IDENTLEN = 32;
@ -636,3 +636,10 @@ program PCNFSDPROG {
%#if RPC_HDR
% extern void msg_out __P((char *));
%#endif
/*
** This allows initialization prior to running the service. (see PR 12758)
*/
%#if RPC_SVC
%#define main mymain
%#endif