--- mmc.h.orig 2017-01-25 19:03:34 UTC +++ mmc.h @@ -17,8 +17,22 @@ * those modifications are Copyright (c) 2016 SanDisk Corp. */ +#if defined(__linux__) #include #include +#elif defined(__FreeBSD__) +#include +#include +#include +typedef int8_t __s8; +typedef uint8_t __u8; +typedef int16_t __s16; +typedef uint16_t __u16; +typedef int32_t __s32; +typedef uint32_t __u32; +typedef int64_t __s64; +typedef uint64_t __u64; +#endif #include #define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }