Serenity Operating System
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Linus Groh <mail@linusgroh.de>
3Date: Fri, 14 Jan 2022 23:36:28 +0330
4Subject: [PATCH] Include `sys/uio.h` in `socketmodule.c`
5
6This is to ensure that `struct iovec` is defined, which is required by
7the `socket` module.
8---
9 Modules/socketmodule.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
13index 14af496a45f4788dc55ec3d959c2de45147725bc..9dcad434af405f0a6f6233f36ef1e1062086050e 100644
14--- a/Modules/socketmodule.c
15+++ b/Modules/socketmodule.c
16@@ -175,7 +175,7 @@ shutdown(how) -- shut down traffic in one or both directions\n\
17 # undef HAVE_GETHOSTBYNAME_R_6_ARG
18 #endif
19
20-#if defined(__OpenBSD__)
21+#if defined(__OpenBSD__) || defined(__serenity__)
22 # include <sys/uio.h>
23 #endif
24