Message342581
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", |
|
Date |
User |
Action |
Args |
2019-05-15 15:53:46 | John Harrison | set | recipients:
+ John Harrison, rbelio |
2019-05-15 15:53:46 | John Harrison | set | messageid: <1557935626.81.0.160876115235.issue34288@roundup.psfhosted.org> |
2019-05-15 15:53:46 | John Harrison | link | issue34288 messages |
2019-05-15 15:53:46 | John Harrison | create | |
|