aboutsummaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-22 10:18:33 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-23 10:44:39 +0200
commit1829e9981bb5b3269c1bc005f30c4fc41b5724e7 (patch)
treed08b7dfd163bc6b7e959406511ccf3bbdf667aa4 /config.h.cmake
parent5145daba69e462ddd69d961b0d940db3aebafa11 (diff)
downloadlibssh-1829e9981bb5b3269c1bc005f30c4fc41b5724e7.tar.gz
libssh-1829e9981bb5b3269c1bc005f30c4fc41b5724e7.tar.xz
libssh-1829e9981bb5b3269c1bc005f30c4fc41b5724e7.zip
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).
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake2
1 files changed, 2 insertions, 0 deletions
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