From 2726bbc3391eddf0f75da56011137d327a156aab Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sat, 29 May 2021 15:20:28 -0400
Subject: sim: assume sys/select.h always exists

Now that gnulib provides this, assume it exists.
---
 sim/lm32/ChangeLog     | 4 ++++
 sim/lm32/dv-lm32uart.c | 1 +
 2 files changed, 5 insertions(+)

(limited to 'sim/lm32')

diff --git a/sim/lm32/ChangeLog b/sim/lm32/ChangeLog
index 3223d90..d47e165 100644
--- a/sim/lm32/ChangeLog
+++ b/sim/lm32/ChangeLog
@@ -1,5 +1,9 @@
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
+	* dv-lm32uart.c: Include sys/select.h.
+
+2021-06-12  Mike Frysinger  <vapier@gentoo.org>
+
 	* configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
 	* sim-if.c (sim_open): Set current_alignment.
 
diff --git a/sim/lm32/dv-lm32uart.c b/sim/lm32/dv-lm32uart.c
index 1f8ba1d..68f02a3 100644
--- a/sim/lm32/dv-lm32uart.c
+++ b/sim/lm32/dv-lm32uart.c
@@ -26,6 +26,7 @@
 #include "sim-assert.h"
 
 #include <stdio.h>
+#include <sys/select.h>
 #include <sys/time.h>
 
 struct lm32uart
-- 
cgit v1.1