mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Issue #18259: Declare sethostname in socketmodule.c for AIX
This commit is contained in:
parent
f0400baba8
commit
d2774c7d09
@ -32,6 +32,8 @@ Core and Builtins
|
||||
Library
|
||||
-------
|
||||
|
||||
- Issue #18259: Declare sethostname in socketmodule.c for AIX
|
||||
|
||||
- Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
|
||||
when \r\n appears at end of 65535 bytes without other newlines.
|
||||
|
||||
|
@ -4132,6 +4132,11 @@ socket_sethostname(PyObject *self, PyObject *args)
|
||||
Py_buffer buf;
|
||||
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)) {
|
||||
PyErr_Clear();
|
||||
if (!PyArg_ParseTuple(args, "O&:sethostname",
|
||||
|
Loading…
Reference in New Issue
Block a user