ITS#10504 lmdb: silence warning on MacOS linker

This commit is contained in:
Howard Chu 2026-05-14 14:15:55 +01:00
parent 62129b7426
commit 83992afea7

View file

@ -288,7 +288,7 @@ union semun {
/* On older compilers, use a separate section */
# ifdef __GNUC__
# ifdef __APPLE__
# define ESECT __attribute__ ((section("__TEXT,text_env")))
# define ESECT __attribute__ ((section("__TEXT,text_env,regular,pure_instructions")))
# else
# define ESECT __attribute__ ((section("text_env")))
# endif