From 4cd7de783bc72cc1f44fe989e7a0c7feb10532d5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 16 Jan 2023 04:35:48 -0500 Subject: sim: formally assume unistd.h always exists (via gnulib) We have many uses of unistd.h that are unprotected by HAVE_UNISTD_H, so this is more formalizing the reality that we require this header. Since we switched to gnulib, it guarantees that a unistd.h exists for us to include, so we're doubly OK. --- sim/m4/sim_ac_platform.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/m4') diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4 index 6356a80..665c1bd 100644 --- a/sim/m4/sim_ac_platform.m4 +++ b/sim/m4/sim_ac_platform.m4 @@ -18,12 +18,12 @@ AC_DEFUN([SIM_AC_PLATFORM], [dnl dnl Check for common headers. dnl NB: You can assume C11 headers exist. +dnl NB: We use gnulib from ../gnulib/, so we don't probe headers it provides. AC_CHECK_HEADERS_ONCE(m4_flatten([ dlfcn.h fcntl.h fpu_control.h termios.h - unistd.h utime.h linux/if_tun.h linux/mii.h @@ -46,6 +46,7 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([ ])) AC_HEADER_DIRENT +dnl NB: We use gnulib from ../gnulib/, so we don't probe functions it provides. AC_CHECK_FUNCS_ONCE(m4_flatten([ __setfpucw access -- cgit v1.1