File tree 3 files changed +4
-13
lines changed
3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 35
35
#ifndef MS_WINDOWS
36
36
#include <unistd.h>
37
37
#endif
38
- #ifdef HAVE_CRYPT_H
39
- #if defined(HAVE_CRYPT_R ) && !defined(_GNU_SOURCE )
40
- /* Required for glibc to expose the crypt_r() function prototype. */
41
- # define _GNU_SOURCE
42
- # define _Py_GNU_SOURCE_FOR_CRYPT
43
- #endif
44
- #include <crypt.h>
45
- #ifdef _Py_GNU_SOURCE_FOR_CRYPT
46
- /* Don't leak the _GNU_SOURCE define to other headers. */
47
- # undef _GNU_SOURCE
48
- # undef _Py_GNU_SOURCE_FOR_CRYPT
49
- #endif
50
- #endif
51
38
52
39
/* For size_t? */
53
40
#ifdef HAVE_STDDEF_H
Original file line number Diff line number Diff line change
1
+ Remove ``crypt.h `` include from the public ``Python.h `` header.
Original file line number Diff line number Diff line change 4
4
#include "Python.h"
5
5
6
6
#include <sys/types.h>
7
+ #ifdef HAVE_CRYPT_H
8
+ #include <crypt.h>
9
+ #endif
7
10
8
11
/* Module crypt */
9
12
You can’t perform that action at this time.
0 commit comments