From 46b551e38660bc63d6f6c6b826cabd6fcf90a0a0 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Mon, 4 Mar 2019 13:33:27 +0300 Subject: [PATCH] mdbx: add in-source definition for _POSIX_C_SOURCE and _XOPEN_SOURCE (musl). --- src/bits.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bits.h b/src/bits.h index 89c45470..3325c327 100644 --- a/src/bits.h +++ b/src/bits.h @@ -29,6 +29,12 @@ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 500 +#endif #ifndef _FILE_OFFSET_BITS # define _FILE_OFFSET_BITS 64 #endif