Commit d2774c7d authored by Christian Heimes's avatar Christian Heimes

Issue #18259: Declare sethostname in socketmodule.c for AIX

parent f0400bab
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment