From 1829e9981bb5b3269c1bc005f30c4fc41b5724e7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 22 Jul 2013 10:18:33 +0200 Subject: cmake: Check for HAVE_GCC_VOLATILE_MEMORY_PROTECTION. This ensures that the memset call is not optimized out by the compiler (works works with gcc and clang). --- config.h.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.h.cmake') diff --git a/config.h.cmake b/config.h.cmake index 16c60529..18d82e4b 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -126,6 +126,8 @@ #cmakedefine HAVE_GCC_THREAD_LOCAL_STORAGE 1 #cmakedefine HAVE_MSC_THREAD_LOCAL_STORAGE 1 +#cmakedefine HAVE_GCC_VOLATILE_MEMORY_PROTECTION 1 + /* Define to 1 if you want to enable GSSAPI */ #cmakedefine WITH_GSSAPI 1 -- cgit v1.2.1