diff options
Diffstat (limited to 'net/arla/patches/patch-bh')
-rw-r--r-- | net/arla/patches/patch-bh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/arla/patches/patch-bh b/net/arla/patches/patch-bh new file mode 100644 index 00000000000..decb75e96b1 --- /dev/null +++ b/net/arla/patches/patch-bh @@ -0,0 +1,23 @@ +# $NetBSD: patch-bh,v 1.1 2002/08/20 17:47:43 wennmach Exp $ + +On NetBSD, comment out call to setgetprogname(). + +--- xfs/bsd/bin/mount_xfs.c.orig Tue Aug 20 17:34:04 2002 ++++ xfs/bsd/bin/mount_xfs.c Tue Aug 20 17:34:52 2002 +@@ -62,7 +62,16 @@ + #ifdef HAVE_OPTRESET + optreset = 1; + #endif ++/* ++ * 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 + while ((ch = getopt(argc, argv, "o:F:")) != -1) + switch (ch) { + case 'o': |