]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99108: Add missing md5/sha1 defines to Modules/Setup (#102308)
authorAnthony Sottile <asottile@umich.edu>
Tue, 28 Feb 2023 21:34:06 +0000 (16:34 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 21:34:06 +0000 (22:34 +0100)
Modules/Setup

index ff432e2929ec2da4dd6d103fe583fbef81d0de76..1c6f2f7ea5182d87545f562bc89146d7acc47433 100644 (file)
@@ -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