# $NetBSD: patch-be,v 1.1 2002/08/20 17:47:42 wennmach Exp $ On NetBSD, comment out call to setgetprogname(). --- lib/cmd/testc.c.orig Tue Aug 20 17:11:59 2002 +++ lib/cmd/testc.c Tue Aug 20 17:12:37 2002 @@ -103,7 +103,16 @@ struct cmd_syndesc *ts; int ret; +/* + * The setprogname(3) function was introduced in NetBSD 1.6. + * It is a function provided for compatibility, and in NetBSD, + * calling setprogname() from main() has no effect. + * In order to for this to work on older NetBSD systems, + * we just comment the call to setprogname() out. + */ +#if !defined(__NetBSD__) setprogname (argv[0]); +#endif ts = cmd_CreateSyntax (NULL, MainProc, NULL, "foo");