Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa3ca7e

Browse files
committed
merge
2 parents 89df7b4 + 262e7f3 commit aa3ca7e

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ Core and Builtins
123123
Library
124124
-------
125125

126+
- Issue #18259: Declare sethostname in socketmodule.c for AIX
127+
126128
- Issue #18147: Add diagnostic functions to ssl.SSLContext(). get_ca_list()
127129
lists all loaded CA certificates and cert_store_stats() returns amount of
128130
loaded X.509 certs, X.509 CA certs and CRLs.

Modules/_ctypes/libffi/src/powerpc/ffi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack)
146146
} p_argv;
147147
size_t struct_copy_size;
148148
unsigned gprvalue;
149+
#ifndef __NO_FPRS__
150+
double double_tmp;
151+
#endif
149152

150153
stacktop.c = (char *) stack + bytes;
151154
gpr_base.u = stacktop.u - ASM_NEEDS_REGISTERS - NUM_GPR_ARG_REGISTERS;
152155
intarg_count = 0;
153156
#ifndef __NO_FPRS__
154-
double double_tmp;
155157
fpr_base.d = gpr_base.d - NUM_FPR_ARG_REGISTERS;
156158
fparg_count = 0;
157159
copy_space.c = ((flags & FLAG_FP_ARGUMENTS) ? fpr_base.c : gpr_base.c);

Modules/socketmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,6 +4066,11 @@ socket_sethostname(PyObject *self, PyObject *args)
40664066
Py_buffer buf;
40674067
int res, flag = 0;
40684068

4069+
#ifdef _AIX
4070+
/* issue #18259, not declared in any useful header file */
4071+
extern int sethostname(const char *, size_t);
4072+
#endif
4073+
40694074
if (!PyArg_ParseTuple(args, "S:sethostname", &hnobj)) {
40704075
PyErr_Clear();
40714076
if (!PyArg_ParseTuple(args, "O&:sethostname",

0 commit comments

Comments
 (0)