File:  [cvs.NetBSD.org] / pkgsrc / lang / python315 / patches / patch-Modules_socketmodule.c
Revision 1.1: download - view: text, annotated - select for diffs
Sat Oct 10 10:34:19 2026 UTC (5 weeks, 2 days ago) by adam
Branches: MAIN
CVS tags: HEAD
python315 py315-html-docs: added version 3.15.0

Python 3.15 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 lazy imports, frozendict and sentinel
builtins, UTF-8 as the default encoding, unpacking in comprehensions, and a
stable ABI for free-threaded builds.

The library changes include a new profiling package with Tachyon, a
high-frequency statistical sampling profiler, more color in command-line
output, as well as the usual deprecations and removals, and improvements in
user-friendliness and correctness.

$NetBSD: patch-Modules_socketmodule.c,v 1.1 2026/10/10 10:34:19 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>