Improve OpenBSD build compatibility
All checks were successful
Alpine 3.20 Success

It still doesn't build, though, because 7.6 doesn't have 0.14 yet.
This commit is contained in:
2024-11-25 13:47:06 +01:00
parent 2a0cac2b42
commit 46f83a033f
3 changed files with 11 additions and 3 deletions

View File

@@ -37,6 +37,10 @@
#undef PROGRAM_NAME
#define PROGRAM_NAME "eizoctl"
#ifdef __OpenBSD__
#define hid_init hidapi_hid_init
#endif
#if defined __GNUC__
#define ATTRIBUTE_PRINTF(x, y) __attribute__((format(printf, x, y)))
#else