File tree 2 files changed +36
-1
lines changed
tools/depends/target/python3 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ --- a/Include/Python.h
2
+ +++ b/Include/Python.h
3
+ @@ -35,19 +35,6 @@
4
+ #ifndef MS_WINDOWS
5
+ #include <unistd.h>
6
+ #endif
7
+ - #ifdef HAVE_CRYPT_H
8
+ - #if defined(HAVE_CRYPT_R) && !defined(_GNU_SOURCE)
9
+ - /* Required for glibc to expose the crypt_r() function prototype. */
10
+ - # define _GNU_SOURCE
11
+ - # define _Py_GNU_SOURCE_FOR_CRYPT
12
+ - #endif
13
+ - #include <crypt.h>
14
+ - #ifdef _Py_GNU_SOURCE_FOR_CRYPT
15
+ - /* Don't leak the _GNU_SOURCE define to other headers. */
16
+ - # undef _GNU_SOURCE
17
+ - # undef _Py_GNU_SOURCE_FOR_CRYPT
18
+ - #endif
19
+ - #endif
20
+
21
+ /* For size_t? */
22
+ #ifdef HAVE_STDDEF_H
23
+ --- a/Modules/_cryptmodule.c
24
+ +++ b/Modules/_cryptmodule.c
25
+ @@ -4,6 +4,9 @@
26
+ #include "Python.h"
27
+
28
+ #include <sys/types.h>
29
+ + #ifdef HAVE_CRYPT_H
30
+ + #include <crypt.h>
31
+ + #endif
32
+
33
+ /* Module crypt */
34
+
Original file line number Diff line number Diff line change 1
1
include ../../Makefile.include
2
2
DEPS = ../../Makefile.include Makefile apple.patch crosscompile.patch android.patch \
3
- modules.setup darwin_embedded.patch
3
+ modules.setup darwin_embedded.patch 01-GH-27394-move-crypt-h.patch
4
4
5
5
# lib name, version
6
6
LIBNAME =Python
@@ -47,6 +47,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
47
47
cd $(PLATFORM ) ; patch -p1 -i ../crosscompile.patch
48
48
cd $(PLATFORM ) ; patch -p1 -i ../android.patch
49
49
cd $(PLATFORM ) ; patch -p1 -i ../apple.patch
50
+ cd $(PLATFORM ) ; patch -p1 -i ../01-GH-27394-move-crypt-h.patch
50
51
ifeq ($(OS ) ,darwin_embedded)
51
52
cd $(PLATFORM); patch -p1 -i ../darwin_embedded.patch
52
53
endif
You can’t perform that action at this time.
0 commit comments