Ports: Fix compilation of python3 socket module
This commit is contained in:
parent
d9832f8d0b
commit
430e5d27aa
Notes:
sideshowbarker
2024-07-18 04:22:47 +09:00
Author: https://github.com/rtobar Commit: https://github.com/SerenityOS/serenity/commit/430e5d27aa1 Pull-request: https://github.com/SerenityOS/serenity/pull/9913 Reviewed-by: https://github.com/linusg ✅
2 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
|
||||
Ensures `HAVE_SIGSET_T` is defined, as we *do* have `sigset_t` but it's not detected properly due to some related functions being missing.
|
||||
|
||||
## `include-sys-uio.patch`
|
||||
|
||||
Ensures `struct iovec` is defined, required by the socket module.
|
||||
|
||||
## `define-py-force-utf8-locale.patch`
|
||||
|
||||
Enforce UTF-8 as encoding by defining `_Py_FORCE_UTF8_LOCALE`.
|
||||
|
|
11
Ports/python3/patches/include-sys-uio.patch
Normal file
11
Ports/python3/patches/include-sys-uio.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- Python-3.10.0rc1/Modules/socketmodule.c 2021-09-09 01:14:41.120232921 +0800
|
||||
+++ Python-3.10.0rc1/Modules/socketmodule.c 2021-08-03 03:53:59.000000000 +0800
|
||||
@@ -171,7 +171,7 @@
|
||||
# undef HAVE_GETHOSTBYNAME_R_6_ARG
|
||||
#endif
|
||||
|
||||
-#if defined(__OpenBSD__)
|
||||
+#if defined(__OpenBSD__) || defined(__serenity__)
|
||||
# include <sys/uio.h>
|
||||
#endif
|
||||
|
Loading…
Add table
Reference in a new issue