Files
serenity/Ports/python3/patches/0003-Include-sys-uio.h-in-socketmodule.c.patch
2024-10-25 23:45:47 +02:00

25 lines
833 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Linus Groh <mail@linusgroh.de>
Date: Mon, 2 Oct 2023 18:52:48 +0100
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 daec560ddfcac706533417a293abee88fb563bbc..0830e337ab436d6a945509f91f0f60335f2304e5 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -176,7 +176,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