1*520786ccSPatrick WilliamsUpstream-Status: Pending
2*520786ccSPatrick Williams
3eb8dc403SDave CobbleyDont assume errno type
4eb8dc403SDave Cobbley
5eb8dc403SDave Cobbley--- ez-ipupdate-3.0.11b7/conf_file.c.orig	2014-07-02 14:01:19.174029328 -0600
6eb8dc403SDave Cobbley+++ ez-ipupdate-3.0.11b7/conf_file.c	2014-07-02 14:08:42.982026223 -0600
7eb8dc403SDave Cobbley@@ -38,11 +38,11 @@
8eb8dc403SDave Cobbley #include <conf_file.h>
9eb8dc403SDave Cobbley
10eb8dc403SDave Cobbley #if HAVE_STRERROR
11eb8dc403SDave Cobbley-extern int errno;
12eb8dc403SDave Cobbley+#  include <errno.h>
13eb8dc403SDave Cobbley #  define error_string strerror(errno)
14eb8dc403SDave Cobbley #elif HAVE_SYS_ERRLIST
15eb8dc403SDave Cobbley extern const char *const sys_errlist[];
16eb8dc403SDave Cobbley-extern int errno;
17eb8dc403SDave Cobbley+#  include <errno.h>
18eb8dc403SDave Cobbley #  define error_string (sys_errlist[errno])
19eb8dc403SDave Cobbley #else
20eb8dc403SDave Cobbley #  define error_string "error message not found"
21