diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-22 10:18:33 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-23 10:44:39 +0200 |
commit | 1829e9981bb5b3269c1bc005f30c4fc41b5724e7 (patch) | |
tree | d08b7dfd163bc6b7e959406511ccf3bbdf667aa4 /config.h.cmake | |
parent | 5145daba69e462ddd69d961b0d940db3aebafa11 (diff) | |
download | libssh-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.cmake | 2 |
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 |