File:  [cvs.NetBSD.org] / pkgsrc / lang / python313 / patches / patch-Modules_socketmodule.c
Revision 1.1: download - view: text, annotated - select for diffs
Wed Oct 9 19:53:20 2024 UTC (2 years, 1 month ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, HEAD
python313 py313-html-docs: added version 3.13.0

Python 3.13 is the latest stable release of the Python programming language,
with a mix of changes to the language, the implementation and the standard
library. The biggest changes include a new interactive interpreter,
experimental support for running in a free-threaded mode (PEP 703), and a
Just-In-Time compiler (PEP 744).

Error messages continue to improve, with tracebacks now highlighted in color by
default. The locals() builtin now has defined semantics for changing the
returned mapping, and type parameters now support default values.

The library changes contain removal of deprecated APIs and modules, as well as
the usual improvements in user-friendliness and correctness. Several legacy
standard library modules have now been removed following their deprecation in
Python 3.11 (PEP 594).

$NetBSD: patch-Modules_socketmodule.c,v 1.1 2024/10/09 19:53:20 adam Exp $

SunOS needs _XOPEN_SOURCE for sendmsg bits that are now required.

--- Modules/socketmodule.c.orig	2023-12-07 20:45:44.000000000 +0000
+++ Modules/socketmodule.c
@@ -89,6 +89,9 @@ Local naming conventions:
 #  define Py_BUILD_CORE_MODULE 1
 #endif
 
+#ifdef __sun
+#define _XOPEN_SOURCE	600
+#endif
 #ifdef __APPLE__
 // Issue #35569: Expose RFC 3542 socket options.
 #define __APPLE_USE_RFC_3542 1

CVSweb <webmaster@jp.NetBSD.org>