diff options
| author | Brett Cannon <brett@python.org> | 2013-06-19 00:51:42 (GMT) |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2013-06-19 00:51:42 (GMT) |
| commit | aa3ca7e0f2c64af85516102e17271d74af9b03e2 (patch) | |
| tree | c99d9944040723708df30b468f1973ff2b25d84f /Modules/socketmodule.c | |
| parent | 89df7b4e64917b9dba7a50bc4bfe789d6adb56f3 (diff) | |
| parent | 262e7f389ca5381fd00938f0c38050c8eab55273 (diff) | |
| download | cpython-aa3ca7e0f2c64af85516102e17271d74af9b03e2.zip cpython-aa3ca7e0f2c64af85516102e17271d74af9b03e2.tar.gz cpython-aa3ca7e0f2c64af85516102e17271d74af9b03e2.tar.bz2 | |
merge
Diffstat (limited to 'Modules/socketmodule.c')
| -rw-r--r-- | Modules/socketmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 46265ad..8bd098f 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -4066,6 +4066,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", |
