From: Howard Chu Date: Tue, 8 Jul 2014 23:27:03 +0000 (-0700) Subject: ITS#7892 Fix MacOSX section name X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~126^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f04728471384e8c1ea06d850590002d45deb3ad;p=openldap ITS#7892 Fix MacOSX section name --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index d8cf710bfd..267a6e3951 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -152,7 +152,11 @@ #ifdef __GNUC__ /** Put infrequently used env functions in separate section */ -#define ESECT __attribute__ ((section("text_env"))) +# ifdef __APPLE__ +# define ESECT __attribute__ ((section("__TEXT,text_env"))) +# else +# define ESECT __attribute__ ((section("text_env"))) +# endif #else #define ESECT #endif