1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00
serenity/Ports/python3/patches/0003-Include-sys-uio.h-in-socketmodule.c.patch
2023-08-30 09:34:43 +02:00

24 lines
834 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Linus Groh <mail@linusgroh.de>
Date: Fri, 14 Jan 2022 23:36:28 +0330
Subject: [PATCH] Include `sys/uio.h` in `socketmodule.c`
This is to ensure that `struct iovec` is defined, which is required by
the `socket` module.
---
Modules/socketmodule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e6d983afa7da85622c0f0e2032e0cb41adc337a2..e29c4b432aed97a99311fe37d8c4b16be3eb4962 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -175,7 +175,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
# undef HAVE_GETHOSTBYNAME_R_6_ARG
#endif
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(__serenity__)
# include <sys/uio.h>
#endif