]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If EOVERFLOW errno isn't defined by system, fallback to ERANGE instead of EINVAL.
authorTimo Sirainen <tss@iki.fi>
Sat, 21 Sep 2013 23:23:30 +0000 (02:23 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 21 Sep 2013 23:23:30 +0000 (02:23 +0300)
ERANGE is used by other functions as well, such as getpwnam_r().

src/lib/compat.h

index 6b752e5316afb1d04b8a586eb6ef5590c02058cf..df27a7768cbf869fca751293512b8a1f320e7da1 100644 (file)
@@ -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