mirror of
https://github.com/python/cpython.git
synced 2025-09-02 15:07:53 +00:00
Issue #18259: Declare sethostname in socketmodule.c for AIX
This commit is contained in:
commit
71515510d8
2 changed files with 7 additions and 0 deletions
|
@ -123,6 +123,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #18259: Declare sethostname in socketmodule.c for AIX
|
||||||
|
|
||||||
- Issue #18147: Add diagnostic functions to ssl.SSLContext(). get_ca_list()
|
- Issue #18147: Add diagnostic functions to ssl.SSLContext(). get_ca_list()
|
||||||
lists all loaded CA certificates and cert_store_stats() returns amount of
|
lists all loaded CA certificates and cert_store_stats() returns amount of
|
||||||
loaded X.509 certs, X.509 CA certs and CRLs.
|
loaded X.509 certs, X.509 CA certs and CRLs.
|
||||||
|
|
|
@ -4066,6 +4066,11 @@ socket_sethostname(PyObject *self, PyObject *args)
|
||||||
Py_buffer buf;
|
Py_buffer buf;
|
||||||
int res, flag = 0;
|
int res, flag = 0;
|
||||||
|
|
||||||
|
#ifdef _AIX
|
||||||
|
/* issue #18259, not declared in any useful header file */
|
||||||
|
extern int sethostname(const char *, size_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "S:sethostname", &hnobj)) {
|
if (!PyArg_ParseTuple(args, "S:sethostname", &hnobj)) {
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
if (!PyArg_ParseTuple(args, "O&:sethostname",
|
if (!PyArg_ParseTuple(args, "O&:sethostname",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue