summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-bf
blob: baa514afa475cd23218b8c67cd9c569f6c7bc8c8 (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#

On NetBSD, comment out call to setgetprogname().

--- lib/ko/gensysname.c.orig	Tue Aug 20 17:17:51 2002
+++ lib/ko/gensysname.c	Tue Aug 20 17:18:26 2002
@@ -249,7 +249,16 @@
     int found = 0;
     int optind = 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 (agetarg (args, argc, argv, &optind, AARG_GNUSTYLE)) 
 	usage();