aboutsummaryrefslogtreecommitdiff
path: root/sim/m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-29 17:17:40 -0400
committerMike Frysinger <vapier@gentoo.org>2021-09-09 01:32:16 -0400
commit03de8f26e8286f6160a9fcd6b082893ed850e8fa (patch)
tree8d58c3c08fafe6924327077c96bcc49ccfbfaf63 /sim/m4
parent93aaa742b360cb9a0b69eb74d1e516cd96982647 (diff)
downloadbinutils-03de8f26e8286f6160a9fcd6b082893ed850e8fa.zip
binutils-03de8f26e8286f6160a9fcd6b082893ed850e8fa.tar.gz
binutils-03de8f26e8286f6160a9fcd6b082893ed850e8fa.tar.bz2
sim: dv-sockser: enable for mingw targets too
We have enough functionality from gnulib now to build sockser on all platforms. Non-blocking I/O is supported when F_GETFL/F_SETFL are unavailable, but we can address that in a follow up commit. This mirrors what is done in other places in the sim already.
Diffstat (limited to 'sim/m4')
-rw-r--r--sim/m4/sim_ac_option_hardware.m415
1 files changed, 5 insertions, 10 deletions
diff --git a/sim/m4/sim_ac_option_hardware.m4 b/sim/m4/sim_ac_option_hardware.m4
index ed53cd2..1d00d2e 100644
--- a/sim/m4/sim_ac_option_hardware.m4
+++ b/sim/m4/sim_ac_option_hardware.m4
@@ -26,16 +26,11 @@ if test "$enable_sim_hardware" = no; then
sim_hw_cflags="-DWITH_HW=0"
elif test "$enable_sim_hardware" = yes; then
sim_hw_cflags="-DWITH_HW=1"
- # mingw does not support sockser
- case ${host} in
- *mingw*) ;;
- *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
- # that you instatiate. Instead, other code will call into it directly.
- # At some point, we should convert it over.
- sim_hw_sockser="dv-sockser.o"
- sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
- ;;
- esac
+ dnl TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
+ dnl that you instatiate. Instead, other code will call into it directly.
+ dnl At some point, we should convert it over.
+ sim_hw_sockser="dv-sockser.o"
+ sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
else
AC_MSG_ERROR([unknown argument "$enable_sim_hardware"])
fi