1diff --git a/src/idn2.c b/src/idn2.c
2index 6abbc72..804f0f2 100644
3--- a/src/idn2.c
4+++ b/src/idn2.c
5@@ -31,7 +31,6 @@
6 #include <unistr.h>
7
8 /* Gnulib headers. */
9-#include "error.h"
10 #include "gettext.h"
11 #define _(String) dgettext (PACKAGE, String)
12 #include "progname.h"
13@@ -222,7 +219,7 @@ main (int argc, char *argv[])
14 }
15
16 if (ferror (stdin))
17- error (EXIT_FAILURE, errno, "%s", _("input error"));
18+ perror (_("input error"));
19
20 cmdline_parser_free (&args_info);