]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/compat.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / common / compat.cc
index 3ec0ca2009c73166e1ced045bc7254ab9a7cae57..82b57ad94b538845cde8d45b39f7e9c6dd93d92f 100644 (file)
 #include <fcntl.h>
 #include <stdint.h>
 #include <stdio.h>
+#include "acconfig.h"
+#ifdef HAVE_MEMSET_S
+# define __STDC_WANT_LIB_EXT1__ 1
+#endif
 #include <string.h>
 #include <thread>
 #ifndef _WIN32
@@ -233,7 +237,7 @@ char *ceph_strerror_r(int errnum, char *buf, size_t buflen)
 }
 
 int ceph_memzero_s(void *dest, size_t destsz, size_t count) {
-#ifdef __STDC_LIB_EXT1__
+#ifdef HAVE_MEMSET_S
     return memset_s(dest, destsz, 0, count);
 #elif defined(_WIN32)
     SecureZeroMemory(dest, count);