This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author John Harrison
Recipients John Harrison, rbelio
Date 2019-05-15.15:53:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557935626.81.0.160876115235.issue34288@roundup.psfhosted.org>
In-reply-to
Content
On Solaris 10 i386 I successfully built _socket on 3.7.3 by patching *in* a Solaris test (by cloning the test for the INET_ADDRSTRLEN definition currently on line 268) rather than by patching away the _AIX ifdef

$ diff -u ../socketmodule.c Modules/socketmodule.c
--- ../socketmodule.c   Wed May 15 16:36:32 2019
+++ Modules/socketmodule.c      Wed May 15 15:34:50 2019
@@ -5212,6 +5212,10 @@
 extern int sethostname(const char *, size_t);
 #endif

+#if (defined(__sun) && defined(__SVR4))
+extern int sethostname(const char *, size_t);
+#endif
+
     if (!PyArg_ParseTuple(args, "S:sethostname", &hnobj)) {
         PyErr_Clear();
         if (!PyArg_ParseTuple(args, "O&:sethostname",
History
Date User Action Args
2019-05-15 15:53:46John Harrisonsetrecipients: + John Harrison, rbelio
2019-05-15 15:53:46John Harrisonsetmessageid: <1557935626.81.0.160876115235.issue34288@roundup.psfhosted.org>
2019-05-15 15:53:46John Harrisonlinkissue34288 messages
2019-05-15 15:53:46John Harrisoncreate