1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

Ports: Fix compilation of python3 socket module

This commit is contained in:
Rodrigo Tobar 2021-09-09 01:55:01 +08:00 committed by Linus Groh
parent d9832f8d0b
commit 430e5d27aa
2 changed files with 15 additions and 0 deletions

View 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