Staging
v0.5.1
https://github.com/python/cpython
Revision 4bb9b9aea04b1a96632da1b30a58fb31cbe6ec92 authored by Christian Heimes on 25 February 2018, 11:31:17 UTC, committed by GitHub on 25 February 2018, 11:31:17 UTC
The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 5bb9692575f10f4a7c7f1c2c0c70956baf6d5c23)

Co-authored-by: Christian Heimes <christian@python.org>
1 parent 3d87f4c
Raw File
Tip revision: 4bb9b9aea04b1a96632da1b30a58fb31cbe6ec92 authored by Christian Heimes on 25 February 2018, 11:31:17 UTC
[2.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5877)
Tip revision: 4bb9b9a
pygetopt.h

#ifndef Py_PYGETOPT_H
#define Py_PYGETOPT_H
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_DATA(int) _PyOS_opterr;
PyAPI_DATA(int) _PyOS_optind;
PyAPI_DATA(char *) _PyOS_optarg;

PyAPI_FUNC(void) _PyOS_ResetGetOpt(void);
PyAPI_FUNC(int) _PyOS_GetOpt(int argc, char **argv, char *optstring);

#ifdef __cplusplus
}
#endif
#endif /* !Py_PYGETOPT_H */
back to top