diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-16 04:35:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-16 04:35:48 -0500 |
commit | 4cd7de783bc72cc1f44fe989e7a0c7feb10532d5 (patch) | |
tree | 39e49c04f886bece9add9d5b076fc269170e4afa /sim/cris | |
parent | e9bf6a4a20798cd495b2833112482ebc55bc5982 (diff) | |
download | binutils-4cd7de783bc72cc1f44fe989e7a0c7feb10532d5.zip binutils-4cd7de783bc72cc1f44fe989e7a0c7feb10532d5.tar.gz binutils-4cd7de783bc72cc1f44fe989e7a0c7feb10532d5.tar.bz2 |
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.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/dv-rv.c | 2 | ||||
-rw-r--r-- | sim/cris/rvdummy.c | 3 | ||||
-rw-r--r-- | sim/cris/traps.c | 2 |
3 files changed, 0 insertions, 7 deletions
diff --git a/sim/cris/dv-rv.c b/sim/cris/dv-rv.c index 6caa4dd..9142b88 100644 --- a/sim/cris/dv-rv.c +++ b/sim/cris/dv-rv.c @@ -29,9 +29,7 @@ #include <ctype.h> #include <errno.h> #include <string.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> -#endif #include <stdlib.h> #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> diff --git a/sim/cris/rvdummy.c b/sim/cris/rvdummy.c index a263ee3..91a7ddc 100644 --- a/sim/cris/rvdummy.c +++ b/sim/cris/rvdummy.c @@ -36,10 +36,7 @@ main (int argc, char *argv[]) #include "libiberty.h" #include <stdio.h> - -#ifdef HAVE_UNISTD_H #include <unistd.h> -#endif #include <stdlib.h> #include <string.h> #ifdef HAVE_SYS_TYPES_H diff --git a/sim/cris/traps.c b/sim/cris/traps.c index afcb348..f5f169f 100644 --- a/sim/cris/traps.c +++ b/sim/cris/traps.c @@ -32,9 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdlib.h> #include <stdarg.h> #include <errno.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> -#endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif |