mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
Ports: Fix compilation of python3 socket module
This commit is contained in:
parent
d9832f8d0b
commit
430e5d27aa
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.
|
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`
|
## `define-py-force-utf8-locale.patch`
|
||||||
|
|
||||||
Enforce UTF-8 as encoding by defining `_Py_FORCE_UTF8_LOCALE`.
|
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
Add a link
Reference in a new issue