Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 84209:9f8efcd78d0d 3.3
Issue #18259: Declare sethostname in socketmodule.c for AIX
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 19 Jun 2013 02:06:29 +0200 |
| parents | ef103e7e7af2 |
| children | b7ea3f94f6ca 14748397fc57 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Jun 18 13:22:17 2013 +0200 +++ b/Modules/socketmodule.c Wed Jun 19 02:06:29 2013 +0200 @@ -4132,6 +4132,11 @@ 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",
