From: Ilya Nelkenbaum <[email protected]> In old glibc versions (< 2.9.90) it is not defined
Signed-off-by: Ilya Nelkenbaum <[email protected]> --- ibsim/sim_cmd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ibsim/sim_cmd.c b/ibsim/sim_cmd.c index 4822a0b..249228a 100644 --- a/ibsim/sim_cmd.c +++ b/ibsim/sim_cmd.c @@ -934,6 +934,11 @@ static int do_perf_counter_set(FILE *f, char *line) field_trim--; *(field_trim + 1) = 0; +#ifndef ULLONG_MAX +/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */ +# define ULLONG_MAX 18446744073709551615ULL +#endif + errno = 0; value = strtoull(s, &val_error, 0); if((value == 0 || value == ULLONG_MAX) && errno != 0) { -- 1.8.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
