diff options
| author | Christian Heimes <christian@cheimes.de> | 2013-06-19 02:06:29 +0200 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2013-06-19 02:06:29 +0200 |
| commit | d2774c7d097bdc1929cb071b74f7b85ddb6ed789 (patch) | |
| tree | edd14d7d16569dff7226b7ba3707bc1f1c2bb715 | |
| parent | f0400baba81579483b9763e95babd8a5e92e1ef1 (diff) | |
| download | cpython-git-d2774c7d097bdc1929cb071b74f7b85ddb6ed789.tar.gz | |
Issue #18259: Declare sethostname in socketmodule.c for AIX
| -rw-r--r-- | Misc/NEWS | 2 | ||||
| -rw-r--r-- | Modules/socketmodule.c | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -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. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 9b58a11bd5..2c8a29cc92 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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", |
