24 lines
708 B
Text
24 lines
708 B
Text
|
# $NetBSD: patch-bk,v 1.1 2002/08/20 17:47:43 wennmach Exp $
|
||
|
|
||
|
On NetBSD, comment out call to setgetprogname().
|
||
|
|
||
|
--- arlad/arlad.c.orig Tue Aug 20 17:56:40 2002
|
||
|
+++ arlad/arlad.c Tue Aug 20 17:57:08 2002
|
||
|
@@ -240,7 +240,16 @@
|
||
|
int optind = 0;
|
||
|
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
|
||
|
|
||
|
if (getarg (args, sizeof(args)/sizeof(*args), argc, argv, &optind))
|
||
|
usage (1);
|