From 72e0939f9eb11f3bcf62592848dd0a47c41246c7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 22 Sep 2013 02:23:30 +0300 Subject: [PATCH] If EOVERFLOW errno isn't defined by system, fallback to ERANGE instead of EINVAL. ERANGE is used by other functions as well, such as getpwnam_r(). --- src/lib/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/compat.h b/src/lib/compat.h index 6b752e5316..df27a7768c 100644 --- a/src/lib/compat.h +++ b/src/lib/compat.h @@ -226,7 +226,7 @@ int i_my_clock_gettime(int clk_id, struct timespec *tp); #define i_isxdigit(x) isxdigit((int) (unsigned char) (x)) #ifndef EOVERFLOW -# define EOVERFLOW EINVAL +# define EOVERFLOW ERANGE #endif #ifdef EDQUOT -- 2.47.3