blob: f4d67a1a3611c97e755c16457a501e95295be4a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-bl,v 1.2 2002/12/23 18:28:20 cjep Exp $
On NetBSD, comment out call to setgetprogname().
--- appl/afsutils/aklog.c.orig Tue Aug 20 18:03:35 2002
+++ appl/afsutils/aklog.c Tue Aug 20 18:06:19 2002
@@ -286,10 +286,24 @@
int optind = 0;
int rc;
+/*
+ * 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
ports_init();
+
+#if !defined(__NetBSD__)
method = log_open (getprogname(), "/dev/stderr:notime");
+#else
+ method = log_open ("aklog", "/dev/stderr:notime");
+#endif
if (method == NULL)
errx (1, "log_open failed");
cell_init(0, method);
|