summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:53:40 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 04:53:40 +0000
commit1dade7d336866473f4f880f16a498c12575ec54a (patch)
treedc6c42b0486a718499f44207bac0580ff6964c26
parentd011f272f198ec3bc66e55f5f70dc1ac399dbc72 (diff)
parentc6cbacee7e128674e7e2ed0ed83589bf3ef5e1e9 (diff)
downloadscrypt-aml_doc_341610010.tar.gz
Snap for 10453563 from c6cbacee7e128674e7e2ed0ed83589bf3ef5e1e9 to mainline-documentsui-releaseaml_doc_341610010aml_doc_341510050aml_doc_341312010aml_doc_341112000aml_doc_341012000aml_doc_340916000
Change-Id: I726480908501c0c7acd4101a84ac5e384f3feb2f
-rw-r--r--Android.bp5
-rw-r--r--config.h2
-rw-r--r--lib/crypto/crypto_scrypt-sse.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 1d784fc..ae10e23 100644
--- a/Android.bp
+++ b/Android.bp
@@ -53,6 +53,11 @@ cc_library_static {
sdk_version: "17",
host_supported: true,
vendor_available: true,
+ target: {
+ windows: {
+ enabled: true,
+ },
+ },
}
cc_test {
diff --git a/config.h b/config.h
index 3514f39..c388856 100644
--- a/config.h
+++ b/config.h
@@ -21,7 +21,9 @@
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `posix_memalign' function. */
+#ifndef _WIN32
#define HAVE_POSIX_MEMALIGN 1
+#endif
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
diff --git a/lib/crypto/crypto_scrypt-sse.c b/lib/crypto/crypto_scrypt-sse.c
index dd18f29..c50204d 100644
--- a/lib/crypto/crypto_scrypt-sse.c
+++ b/lib/crypto/crypto_scrypt-sse.c
@@ -29,7 +29,9 @@
#include "scrypt_platform.h"
#include <sys/types.h>
+#ifndef _WIN32
#include <sys/mman.h>
+#endif
#include <emmintrin.h>
#include <errno.h>