blob: f9cf1747062da924c67c7760074f885a5c4d03e1 (
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.2 2002/12/23 18:28:20 cjep 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");
|