Catch inadvertent USE_TLS=0 declaration
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Wed, 19 Sep 2018 16:03:43 +0000 (18:03 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Sep 2018 16:03:43 +0000 (18:03 +0200)
for #1766

driver/others/memory.c

index e73d53f..0019253 100644 (file)
@@ -75,6 +75,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #if defined(USE_TLS) && defined(SMP)
 #define COMPILE_TLS
+
+#if USE_TLS != 1
+#undef COMPILE_TLS
+#endif
+
 #if defined(__GLIBC_PREREQ) 
 #if !__GLIBC_PREREQ(2,20)
 #undef COMPILE_TLS