summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-29 20:47:58 (GMT)
committerGitHub <noreply@github.com>2021-09-29 20:47:58 (GMT)
commit9626ac8b7421aa5fc04a30359521d24f40105141 (patch)
tree6a9e0cfd0dba0ef9e4a7a42d582c956530ef93d7 /Include
parent87ecdb227f237099fde8ad374fd6bd0cd6392b0b (diff)
downloadcpython-9626ac8b7421aa5fc04a30359521d24f40105141.zip
cpython-9626ac8b7421aa5fc04a30359521d24f40105141.tar.gz
cpython-9626ac8b7421aa5fc04a30359521d24f40105141.tar.bz2
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394)
Automerge-Triggered-By: GH:benjaminp (cherry picked from commit 196998e220d6ca030e5a1c8ad63fcaed8e049a98) Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/Include/Python.h b/Include/Python.h
index acee38c..6ee52e7 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -35,19 +35,6 @@
#ifndef MS_WINDOWS
#include <unistd.h>
#endif
-#ifdef HAVE_CRYPT_H
-#if defined(HAVE_CRYPT_R) && !defined(_GNU_SOURCE)
-/* Required for glibc to expose the crypt_r() function prototype. */
-# define _GNU_SOURCE
-# define _Py_GNU_SOURCE_FOR_CRYPT
-#endif
-#include <crypt.h>
-#ifdef _Py_GNU_SOURCE_FOR_CRYPT
-/* Don't leak the _GNU_SOURCE define to other headers. */
-# undef _GNU_SOURCE
-# undef _Py_GNU_SOURCE_FOR_CRYPT
-#endif
-#endif
/* For size_t? */
#ifdef HAVE_STDDEF_H