about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch
blob: e2202abd947c4bd2bb79456c826f039b479f352e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/idn2.c b/src/idn2.c
index 6abbc72..804f0f2 100644
--- a/src/idn2.c
+++ b/src/idn2.c
@@ -31,7 +31,6 @@
 #include <unistr.h>
 
 /* Gnulib headers. */
-#include "error.h"
 #include "gettext.h"
 #define _(String) dgettext (PACKAGE, String)
 #include "progname.h"
@@ -222,7 +219,7 @@ main (int argc, char *argv[])
     }
 
   if (ferror (stdin))
-    error (EXIT_FAILURE, errno, "%s", _("input error"));
+    perror (_("input error"));
 
   cmdline_parser_free (&args_info);