$OpenBSD: patch-src_idn2_c,v 1.1.1.1 2017/02/14 16:06:00 naddy Exp $
--- src/idn2.c.orig	Sat Jan 14 16:06:09 2017
+++ src/idn2.c	Mon Feb 13 21:22:11 2017
@@ -31,7 +31,7 @@
 #include <unistr.h>
 
 /* Gnulib headers. */
-#include "error.h"
+#include "err.h"
 #include "gettext.h"
 #define _(String) dgettext (PACKAGE, String)
 #include "progname.h"
@@ -161,7 +161,7 @@ process_input (char *readbuf, int flags)
       free (output);
     }
   else
-    error (EXIT_FAILURE, 0, "%s: %s",
+    errc (EXIT_FAILURE, 0, "%s: %s",
 	   args_info.register_given ? "register" : "lookup",
 	   idn2_strerror (rc));
 }
@@ -222,7 +222,7 @@ main (int argc, char *argv[])
     }
 
   if (ferror (stdin))
-    error (EXIT_FAILURE, errno, "%s", _("input error"));
+    errc (EXIT_FAILURE, errno, "%s", _("input error"));
 
   cmdline_parser_free (&args_info);
 
