Index: head/devel/dwarves/files/patch-dutil.h =================================================================== --- head/devel/dwarves/files/patch-dutil.h (revision 418836) +++ head/devel/dwarves/files/patch-dutil.h (revision 418837) @@ -1,30 +1,30 @@ --- dutil.h.orig 2016-06-30 19:30:28 UTC +++ dutil.h @@ -15,7 +15,17 @@ #include #include #include +#if 0 #include +#else -+# if defined(__LP64__) ++# if __SIZEOF_LONG__ == 8 +# define __BITS_PER_LONG 64 -+# elif defined(__ILP32__) ++# elif __SIZEOF_LONG__ == 4 +# define __BITS_PER_LONG 32 +# else +# error What are you -+# endif /* __LP64__ */ ++# endif +#endif #include "rbtree.h" #define BITS_PER_LONG __BITS_PER_LONG @@ -28,7 +38,9 @@ #define __pure __attribute__ ((pure)) #endif +#ifndef roundup #define roundup(x,y) ((((x) + ((y) - 1)) / (y)) * (y)) +#endif static inline __attribute__((const)) bool is_power_of_2(unsigned long n) {