summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-bm
diff options
context:
space:
mode:
Diffstat (limited to 'net/arla/patches/patch-bm')
-rw-r--r--net/arla/patches/patch-bm27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/arla/patches/patch-bm b/net/arla/patches/patch-bm
new file mode 100644
index 00000000000..7767781e3c0
--- /dev/null
+++ b/net/arla/patches/patch-bm
@@ -0,0 +1,27 @@
+# $NetBSD: patch-bm,v 1.1 2002/08/20 17:47:44 wennmach Exp $
+
+On NetBSD, comment out call to setgetprogname().
+
+--- appl/afsutils/klog.c.orig Tue Aug 20 18:07:46 2002
++++ appl/afsutils/klog.c Tue Aug 20 18:09:32 2002
+@@ -498,9 +498,19 @@
+
+ char pwbuf[PASSWD_MAX];
+
++/*
++ * 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]);
+-
+ method = log_open (getprogname(), "/dev/stderr:notime");
++#else
++ method = log_open ("klog", "/dev/stderr:notime");
++#endif
+ if (method == NULL)
+ errx (1, "log_open failed");
+ cell_init(0, method);