Source
xxxxxxxxxx
--- rpc_main.c.orig
+++ rpc_main.c
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