sim: assume sys/select.h always exists

Now that gnulib provides this, assume it exists.
This commit is contained in:
Mike Frysinger 2021-05-29 15:20:28 -04:00
parent a80249d0a9
commit 2726bbc339
13 changed files with 25 additions and 15 deletions

View 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.

View 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.

View 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__

View File

@ -287,9 +287,6 @@
/* 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

3
sim/configure vendored
View File

@ -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

View 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.

View 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>

View 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 {

View 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.

View File

@ -26,6 +26,7 @@
#include "sim-assert.h"
#include <stdio.h>
#include <sys/select.h>
#include <sys/time.h>
struct lm32uart

View 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.

View 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

View 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