mdbx: fix build with uclibc.

Change-Id: I907fecd84b335a84d5f1dcaa44ac489c4dfb1907
This commit is contained in:
Leonid Yuriev
2020-09-27 12:50:13 +03:00
parent 12770cae88
commit 1e3f633665
3 changed files with 16 additions and 4 deletions

View File

@@ -134,7 +134,18 @@ typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 {
/*----------------------------------------------------------------------------*/
#if _POSIX_C_SOURCE > 200212 && \
#if defined(__UCLIBC__)
__extern_C void __assert(const char *, const char *, unsigned int, const char *)
#ifdef __THROW
__THROW
#else
__nothrow
#endif /* __THROW */
__noreturn;
#define __assert_fail(assertion, file, line, function) \
__assert(assertion, file, line, function)
#elif _POSIX_C_SOURCE > 200212 && \
/* workaround for avoid musl libc wrong prototype */ ( \
defined(__GLIBC__) || defined(__GNU_LIBRARY__))
/* Prototype should match libc runtime. ISO POSIX (2003) & LSB 1.x-3.x */