summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-bl
diff options
context:
space:
mode:
Diffstat (limited to 'net/arla/patches/patch-bl')
-rw-r--r--net/arla/patches/patch-bl31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/arla/patches/patch-bl b/net/arla/patches/patch-bl
new file mode 100644
index 00000000000..2750e3c387c
--- /dev/null
+++ b/net/arla/patches/patch-bl
@@ -0,0 +1,31 @@
+# $NetBSD: patch-bl,v 1.1 2002/08/20 17:47:44 wennmach 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);