From: David Decotigny <de...@googlers.com>
Signed-off-by: David Decotigny <de...@googlers.com> --- internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal.h b/internal.h index 5f8504d..5df8124 100644 --- a/internal.h +++ b/internal.h @@ -13,6 +13,7 @@ #ifdef HAVE_CONFIG_H #include "ethtool-config.h" #endif +#include <limits.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> @@ -36,6 +37,8 @@ typedef uint16_t u16; typedef uint8_t u8; typedef int32_t s32; +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) + #include "ethtool-copy.h" #include "net_tstamp-copy.h" @@ -72,7 +75,6 @@ static inline u64 cpu_to_be64(u64 value) #define BITS_PER_BYTE 8 #define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long)) -#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) static inline void set_bit(unsigned int nr, unsigned long *addr) -- 2.7.0.rc3.207.g0ac5344