--- rpc_main.c.orig +++ rpc_main.c @@ -82,11 +82,13 @@ static char pathbuf[MAXPATHLEN + 1]; static const char *allv[] = { "rpcgen", "-s", "udp", "-s", "tcp", }; +#define nitems(a) (sizeof(a)/sizeof(a[0])) static int allc = nitems(allv); static const char *allnv[] = { "rpcgen", "-s", "netpath", }; static int allnc = nitems(allnv); +#undef nitems /* * machinations for handling expanding argument list