Hi, while setting up a devel box, I've tried to install sbuild, but thanks to a huge chain of dependencies, it's not installable because of schroot, mpi, etc. until libibverbs. For that one, I've written the attached patch, but it sounds like suboptimal to me. I guess there might be a better way to express those types. Maybe using the types I've defined everywhere in the sources, instead of the “linuxisms” (I'd assume they are) that are currently used?
I'm going to file a bug against that package with that current patch and eventually open a minor bug later if someone points me to a better approach. Thanks for your time. Mraw, KiBi.
--- a/include/infiniband/kern-abi.h +++ b/include/infiniband/kern-abi.h @@ -35,7 +35,19 @@ #ifndef KERN_ABI_H #define KERN_ABI_H +#if __linux #include <linux/types.h> +#else +#include <sys/types.h> +#define __u64 u_int64_t +#define __s64 int64_t +#define __u32 u_int32_t +#define __s32 int32_t +#define __u16 u_int16_t +#define __s16 int16_t +#define __u8 u_int8_t +#define __s8 int8_t +#endif /* * This file must be kept in sync with the kernel's version of --- a/include/infiniband/sa-kern-abi.h +++ b/include/infiniband/sa-kern-abi.h @@ -33,7 +33,19 @@ #ifndef INFINIBAND_SA_KERN_ABI_H #define INFINIBAND_SA_KERN_ABI_H +#if __linux #include <linux/types.h> +#else +#include <sys/types.h> +#define __u64 u_int64_t +#define __s64 int64_t +#define __u32 u_int32_t +#define __s32 int32_t +#define __u16 u_int16_t +#define __s16 int16_t +#define __u8 u_int8_t +#define __s8 int8_t +#endif /* * Obsolete, deprecated names. Will be removed in libibverbs 1.1.