mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 22:09:03 +08:00
mdbx: portability fixes for SunOS/Solaris/OpenIndiana.
Change-Id: I0442367e798903598d706c65b536a127ca982fce
This commit is contained in:
9
mdbx.h
9
mdbx.h
@@ -769,7 +769,16 @@ struct iovec {
|
||||
#define HAVE_STRUCT_IOVEC
|
||||
#endif /* HAVE_STRUCT_IOVEC */
|
||||
|
||||
#if defined(__sun) || defined(__SVR4) || defined(__svr4__)
|
||||
/* The `iov_len` is signed on Sun/Solaris.
|
||||
* So define custom MDBX_val to avoid a lot of warings. */
|
||||
typedef struct MDBX_val {
|
||||
void *iov_base /* pointer to some data */;
|
||||
size_t iov_len /* the length of data in bytes */;
|
||||
} MDBX_val;
|
||||
#else
|
||||
typedef struct iovec MDBX_val;
|
||||
#endif
|
||||
|
||||
/* The maximum size of a data item.
|
||||
* MDBX only store a 32 bit value for node sizes. */
|
||||
|
Reference in New Issue
Block a user