# $NetBSD: patch-bq,v 1.1.2.2 2002/08/21 09:58:32 agc Exp $

On NetBSD, comment out call to setgetprogname().

--- appl/themis/themis.c.orig	Tue Aug 20 18:28:42 2002
+++ appl/themis/themis.c	Tue Aug 20 18:29:14 2002
@@ -2285,7 +2285,16 @@
     char *file;
     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 (getarg (args, sizeof(args)/sizeof(*args), argc, argv, &optind))
 	usage (1);
