diff --git a/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch b/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch new file mode 100644 index 0000000000..d0a1b5153d --- /dev/null +++ b/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch @@ -0,0 +1,26 @@ +From 90287ce0f011bb46c082a5e176114c831a6f32e1 Mon Sep 17 00:00:00 2001 +From: Luke +Date: Fri, 14 Jan 2022 16:43:10 +0330 +Subject: [PATCH] accept.c: Include sys/select.h + +This is transitively pulled in by other headers in some systems, +serenity is not one of them. +--- + examples/loadables/accept.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/examples/loadables/accept.c b/examples/loadables/accept.c +index 54cf38c..fd8e7ed 100644 +--- a/examples/loadables/accept.c ++++ b/examples/loadables/accept.c +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + #include "loadables.h" + +-- +2.34.1 + diff --git a/Ports/bash/patches/ReadMe.md b/Ports/bash/patches/ReadMe.md index 171c738f01..4485ff4c6e 100644 --- a/Ports/bash/patches/ReadMe.md +++ b/Ports/bash/patches/ReadMe.md @@ -1,5 +1,8 @@ -# Patches for bash +# Patches for bash on SerenityOS -## `include-sys-select.patch` +## `0001-accept.c-Include-sys-select.h.patch` + +accept.c: Include sys/select.h +This is transitively pulled in by other headers in some systems, +serenity is not one of them. -Include `` before using it. diff --git a/Ports/bash/patches/include-sys-select.patch b/Ports/bash/patches/include-sys-select.patch deleted file mode 100644 index 2fe892c68b..0000000000 --- a/Ports/bash/patches/include-sys-select.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- bash-5.1.8.serenity/examples/loadables/accept.c 2020-03-18 12:58:36.000000000 +0000 -+++ bash-5.1.8/examples/loadables/accept.c 2021-07-29 17:11:26.258287156 +0100 -@@ -35,6 +35,7 @@ - #include - #include - #include -+#include - - #include "loadables.h" -