Files
haikuports/dev-lang/r/patches/r-4.5.2.patchset
2025-11-16 15:49:43 +01:00

25 lines
608 B
Plaintext

From 9ca56a031d713bbbc5808aa0c06a2d8757bf605a Mon Sep 17 00:00:00 2001
From: Schrijvers Luc <begasus@gmail.com>
Date: Sun, 12 Jan 2025 08:57:01 +0100
Subject: Add #include <sys/select.h> for missing fd_set
diff --git a/src/include/R_ext/eventloop.h b/src/include/R_ext/eventloop.h
index 951b422..a636579 100644
--- a/src/include/R_ext/eventloop.h
+++ b/src/include/R_ext/eventloop.h
@@ -43,6 +43,10 @@
/* NOTE: At one time needed on FreeBSD so that fd_set is defined. */
#include <sys/types.h>
+#ifdef __HAIKU__
+#include <sys/select.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
--
2.51.0