X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/451b5fc969100e9866f74dac71e9b6bda5af5324..707c1a3085cb11dcba2ad968e797429cd50208f0:/popt/popt.c diff --git a/popt/popt.c b/popt/popt.c index c6672b7a..d17c31c6 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -904,6 +904,9 @@ int poptGetNextOpt(poptContext con) if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_DOUBLE) { *((double *) opt->arg) = aDouble; } else { +#ifndef DBL_EPSILON +#define DBL_EPSILON 2.2204460492503131e-16 +#endif #define _ABS(a) ((((a) - 0.0) < DBL_EPSILON) ? -(a) : (a)) if ((_ABS(aDouble) - FLT_MAX) > DBL_EPSILON) return POPT_ERROR_OVERFLOW;