summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-bi
blob: bd6639514962b5844ac268802df3cf38b2cffc42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-bi,v 1.2 2002/12/23 18:28:20 cjep Exp $

On NetBSD, comment out call to setgetprogname().

--- xfs/bsd/bin/umount_xfs.c.orig	Tue Aug 20 17:40:34 2002
+++ xfs/bsd/bin/umount_xfs.c	Tue Aug 20 17:41:20 2002
@@ -47,7 +47,16 @@
 {
     int force = 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]);
+#endif
     if (argc != 2 && argc != 3)
 	usage();