diff options
Diffstat (limited to 'net/arla/patches/patch-bo')
-rw-r--r-- | net/arla/patches/patch-bo | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net/arla/patches/patch-bo b/net/arla/patches/patch-bo new file mode 100644 index 00000000000..52dff9b3f31 --- /dev/null +++ b/net/arla/patches/patch-bo @@ -0,0 +1,27 @@ +# $NetBSD: patch-bo,v 1.1 2002/08/20 17:47:45 wennmach Exp $ + +On NetBSD, comment out call to setgetprogname(). + +--- appl/bos/bos.c.orig Tue Aug 20 18:23:16 2002 ++++ appl/bos/bos.c Tue Aug 20 18:24:24 2002 +@@ -145,9 +145,19 @@ + Log_method *method; + int ret = 0; + ++/* ++ * 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 ("bos", "/dev/stderr:notime"); ++#endif + if (method == NULL) + errx (1, "log_open failed"); + cell_init(0, method); |