summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2023-02-28 21:34:06 (GMT)
committerGitHub <noreply@github.com>2023-02-28 21:34:06 (GMT)
commit360ef843d8fc03aad38ed84f9f45026ab08ca4f4 (patch)
tree7281367557429d482beba9f976e3e9fe787e292f /Modules
parent880437d4ec65ef35d505eeaff9dad5c6654dbc1a (diff)
downloadcpython-360ef843d8fc03aad38ed84f9f45026ab08ca4f4.zip
cpython-360ef843d8fc03aad38ed84f9f45026ab08ca4f4.tar.gz
cpython-360ef843d8fc03aad38ed84f9f45026ab08ca4f4.tar.bz2
gh-99108: Add missing md5/sha1 defines to Modules/Setup (#102308)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Setup b/Modules/Setup
index ff432e2..1c6f2f7 100644
--- a/Modules/Setup
+++ b/Modules/Setup
@@ -163,8 +163,8 @@ PYTHONPATH=$(COREPYTHONPATH)
# hashing builtins
#_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
-#_md5 md5module.c -I$(srcdir)/Modules/_hacl/include _hacl/Hacl_Hash_MD5.c
-#_sha1 sha1module.c -I$(srcdir)/Modules/_hacl/include _hacl/Hacl_Hash_SHA1.c
+#_md5 md5module.c -I$(srcdir)/Modules/_hacl/include _hacl/Hacl_Hash_MD5.c -D_BSD_SOURCE -D_DEFAULT_SOURCE
+#_sha1 sha1module.c -I$(srcdir)/Modules/_hacl/include _hacl/Hacl_Hash_SHA1.c -D_BSD_SOURCE -D_DEFAULT_SOURCE
#_sha2 sha2module.c -I$(srcdir)/Modules/_hacl/include Modules/_hacl/libHacl_Streaming_SHA2.a
#_sha3 _sha3/sha3module.c