summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-19 00:06:29 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-19 00:06:29 (GMT)
commitd2774c7d097bdc1929cb071b74f7b85ddb6ed789 (patch)
treeedd14d7d16569dff7226b7ba3707bc1f1c2bb715 /Modules/socketmodule.c
parentf0400baba81579483b9763e95babd8a5e92e1ef1 (diff)
downloadcpython-d2774c7d097bdc1929cb071b74f7b85ddb6ed789.zip
cpython-d2774c7d097bdc1929cb071b74f7b85ddb6ed789.tar.gz
cpython-d2774c7d097bdc1929cb071b74f7b85ddb6ed789.tar.bz2
Issue #18259: Declare sethostname in socketmodule.c for AIX
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 9b58a11..2c8a29c 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",