X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemcp.c;fp=clients%2Fmemcp.c;h=df3ca77e315e46fa205955fcd880c11eee697af3;hb=b539fd56a235cfbbdd12ebc64c66686b518573d0;hp=1dc30631900eed71032fa4424c6201eceed8b9b0;hpb=df195ef1c470034c367d360d4685d5964c2daca6;p=awesomized%2Flibmemcached diff --git a/clients/memcp.c b/clients/memcp.c index 1dc30631..df3ca77e 100644 --- a/clients/memcp.c +++ b/clients/memcp.c @@ -9,7 +9,8 @@ * */ -#include "libmemcached/common.h" +#include "config.h" + #include #include #include @@ -54,7 +55,7 @@ static long strtol_wrapper(const char *nptr, int base, bool *error) /* Check for various possible errors */ - if ((errno == ERANGE && (val == LONG_MAX || val == LONG_MIN)) + if ((errno == ERANGE && (val == INTMAX_MAX || val == INTMAX_MIN)) || (errno != 0 && val == 0)) { *error= true;