summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-19 00:07:20 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-19 00:07:20 (GMT)
commit71515510d87895955df4b21233ae4ec1e384614c (patch)
treea2c459c46a486f1604675fa9fde2ec0c06228e38 /Modules/socketmodule.c
parent360b89ca5e388298a9910b917b1add21a05b9a1b (diff)
parentd2774c7d097bdc1929cb071b74f7b85ddb6ed789 (diff)
downloadcpython-71515510d87895955df4b21233ae4ec1e384614c.zip
cpython-71515510d87895955df4b21233ae4ec1e384614c.tar.gz
cpython-71515510d87895955df4b21233ae4ec1e384614c.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 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",