blob: e0748a91dc5b15a931fd5e649a7746857b1c8bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $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");
|