Define TIME_MAX to LLONG_MAX for OpenBSD since OpenBSD uses 64-bit time_t. Signed-off-by: Brad Smith <b...@comstyle.com>
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 6855b94bbf..824714049b 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -132,8 +132,12 @@ extern int daemon(int, int); #define ESHUTDOWN 4099 #endif #ifndef TIME_MAX +#ifdef __OpenBSD__ +#define TIME_MAX LLONG_MAX +#else #define TIME_MAX LONG_MAX #endif +#endif /* HOST_LONG_BITS is the size of a native pointer in bits. */ #if UINTPTR_MAX == UINT32_MAX