ladybird/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch
Fabian Dellwing 824d23570a Ports: Remove getconf from bash examples
We fail to build `getconf.c` from the builtin examples. And therefore
don't install the rest. If we remove it, we successfully build the
rest of the examples.
2023-04-27 10:25:42 +01:00

24 lines
739 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Luke <luke.wilde@live.co.uk>
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 ff98423dd0b256a79cd6d033abb381705daac868..0099f97f635885f6672f52efda2e90415659340a 100644
--- a/examples/loadables/accept.c
+++ b/examples/loadables/accept.c
@@ -36,6 +36,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
+#include <sys/select.h>
#include "loadables.h"