summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-bj
blob: ac189d0b0b625a58b2e39ba5e63e6b46d8950e36 (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-bj,v 1.2 2002/12/23 18:28:20 cjep Exp $

On NetBSD, comment out call to setgetprogname().

--- arlad/arla-cli.c.orig	Tue Aug 20 17:48:16 2002
+++ arlad/arla-cli.c	Tue Aug 20 17:49:03 2002
@@ -687,7 +687,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);