sim: assume sys/select.h always exists
authorMike Frysinger <vapier@gentoo.org>
Sat, 29 May 2021 19:20:28 +0000 (15:20 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 13 Jun 2021 02:19:30 +0000 (22:19 -0400)
Now that gnulib provides this, assume it exists.

13 files changed:
sim/ChangeLog
sim/common/ChangeLog
sim/common/dv-sockser.c
sim/config.h.in
sim/configure
sim/cris/ChangeLog
sim/cris/dv-rv.c
sim/cris/rvdummy.c
sim/lm32/ChangeLog
sim/lm32/dv-lm32uart.c
sim/m32c/ChangeLog
sim/m32c/mem.c
sim/m4/sim_ac_platform.m4

index 54f2216c42ddcad1b1b6deca8f1f735f68937ee5..b90b13a0760ec769116d97421dac040e4e0c14a9 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * m4/sim_ac_platform.m4: Delete sys/select.h.
+       * config.h.in, configure: Regenerate.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Call SIM_AC_OPTION_ALIGNMENT.
index ff0f4e22323fc6f96b27d49032ec165341284bbb..19e93bbe492dc9b8edca103d1590737582e02b92 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * dv-sockser.c: Include sys/select.h.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * Make-common.in: Delete SIM_ALIGNMENT.
index ef652f62f4681ac55905a0b102dee07c1c8a1454..7f1cf798e4b947d8161927d13109f8cae9d175c0 100644 (file)
@@ -39,6 +39,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#include <sys/select.h>
 #include <sys/socket.h>
 
 #ifndef __CYGWIN32__
index a1d4f782431b12b4003c6883d595d24a05e1ec89..6e8768649411c7285aa8143e5a139c7221253097 100644 (file)
 /* Define to 1 if you have the <sys/resource.h> header file. */
 #undef HAVE_SYS_RESOURCE_H
 
-/* Define to 1 if you have the <sys/select.h> header file. */
-#undef HAVE_SYS_SELECT_H
-
 /* Define to 1 if you have the <sys/socket.h> header file. */
 #undef HAVE_SYS_SOCKET_H
 
index bb3c54cae3dd7bf91abd3dcfde7334cf23eee45d..2d4204fe5261597d2fb8595c037662f84c88b9ae 100755 (executable)
@@ -2355,7 +2355,6 @@ as_fn_append ac_header_list " sys/mman.h"
 as_fn_append ac_header_list " sys/mount.h"
 as_fn_append ac_header_list " sys/param.h"
 as_fn_append ac_header_list " sys/resource.h"
-as_fn_append ac_header_list " sys/select.h"
 as_fn_append ac_header_list " sys/socket.h"
 as_fn_append ac_header_list " sys/stat.h"
 as_fn_append ac_header_list " sys/statfs.h"
@@ -4657,8 +4656,6 @@ done
 
 
 
-
-
 
 
 
index bde34bb9303aeddffd33c48f939d9e129cc4355f..2f4be8d947812a0674104a27d36bea5f19bdba3d 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * dv-rv.c: Delete HAVE_SYS_SELECT_H.
+       * rvdummy.c: Likewise.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
index 310155c8442036ae07eb1fba367a342b2030b68a..89d6408ef9cdf93cf924b6b107b1550c7d9b474e 100644 (file)
@@ -39,9 +39,7 @@
 
 #include <sys/time.h>
 
-#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
-#endif
 
 /* Not guarded in dv-sockser.c, so why here.  */
 #include <netinet/in.h>
index b53e823f8f7a0bf11fd4b0e5d980104c5fc3c35b..719b2fcb74b5ac78ed74403d908433f3466cee5f 100644 (file)
@@ -48,16 +48,13 @@ main (int argc, char *argv[])
 
 #include <sys/time.h>
 
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-
 #include <errno.h>
 
 /* Not guarded in dv-sockser.c, so why here.  */
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#include <sys/select.h>
 #include <sys/socket.h>
 
 enum rv_command {
index 3223d90b0970be965c58c969490d1f6020119b61..d47e165b531eff6928115f927622fb33e9d9ccb3 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 1f8ba1d92eeed0eb9aaa9483f0b0749bfaadd978..68f02a32df6b7134370772812f02708cd6d74bbc 100644 (file)
@@ -26,6 +26,7 @@
 #include "sim-assert.h"
 
 #include <stdio.h>
+#include <sys/select.h>
 #include <sys/time.h>
 
 struct lm32uart
index 270b5907ffcd7816f615cb2cea64c4eca88261e7..8d3e606b1fb181e4a2e7355d4f62bbe10eede5d0 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * mem.c: Delete HAVE_SYS_SELECT_H.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
        * aclocal.m4, config.in, configure: Regenerate.
index 243b7c4e072ce49fdff18b734ca429246c92f58f..bc293aa637d216cb0abc9df585d6df16ab29f713 100644 (file)
@@ -29,9 +29,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <sys/time.h>
 #include <sys/types.h>
 #include <unistd.h>
-#ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
-#endif
 #ifdef HAVE_TERMIOS_H
 #include <termios.h>
 #endif
index 95760a65a96383b530291fb816f569d7d1eae88f..c505c74e7af49ab85f88f2177ae8898d9d82f5b7 100644 (file)
@@ -36,7 +36,6 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([
   sys/mount.h
   sys/param.h
   sys/resource.h
-  sys/select.h
   sys/socket.h
   sys/stat.h
   sys/statfs.h