diff --git a/llarp/util/bencode.cpp b/llarp/util/bencode.cpp index 379e1e0c2..991c53df6 100644 --- a/llarp/util/bencode.cpp +++ b/llarp/util/bencode.cpp @@ -75,7 +75,9 @@ bencode_write_bytestring(llarp_buffer_t* buff, const void* data, size_t sz) bool bencode_write_uint64(llarp_buffer_t* buff, uint64_t i) { -#if !defined(__LP64__) || (__APPLE__ && __MACH__) +// NetBSDs also do this shit in long mode, wouldn't be surprised +// if all the BSDs do by default +#if !defined(__LP64__) || (__APPLE__ && __MACH__) || (__NetBSD__) || (__OpenBSD__) if(!buff->writef("i%llu", i)) #else if(!buff->writef("i%lu", i))