aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-16 04:35:48 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-16 04:35:48 -0500
commit4cd7de783bc72cc1f44fe989e7a0c7feb10532d5 (patch)
tree39e49c04f886bece9add9d5b076fc269170e4afa /sim/ppc
parente9bf6a4a20798cd495b2833112482ebc55bc5982 (diff)
downloadfsf-binutils-gdb-4cd7de783bc72cc1f44fe989e7a0c7feb10532d5.zip
fsf-binutils-gdb-4cd7de783bc72cc1f44fe989e7a0c7feb10532d5.tar.gz
fsf-binutils-gdb-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/ppc')
-rw-r--r--sim/ppc/emul_bugapi.c2
-rw-r--r--sim/ppc/emul_chirp.c2
-rw-r--r--sim/ppc/emul_netbsd.c2
-rw-r--r--sim/ppc/emul_unix.c2
-rw-r--r--sim/ppc/hw_com.c2
-rw-r--r--sim/ppc/hw_disk.c3
-rw-r--r--sim/ppc/hw_pal.c2
-rw-r--r--sim/ppc/main.c2
-rw-r--r--sim/ppc/mon.c2
-rw-r--r--sim/ppc/table.c2
10 files changed, 0 insertions, 21 deletions
diff --git a/sim/ppc/emul_bugapi.c b/sim/ppc/emul_bugapi.c
index f4eed44..067e406 100644
--- a/sim/ppc/emul_bugapi.c
+++ b/sim/ppc/emul_bugapi.c
@@ -27,9 +27,7 @@
#include "emul_generic.h"
#include "emul_bugapi.h"
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdlib.h>
#include <string.h>
diff --git a/sim/ppc/emul_chirp.c b/sim/ppc/emul_chirp.c
index 116f373..c064a28 100644
--- a/sim/ppc/emul_chirp.c
+++ b/sim/ppc/emul_chirp.c
@@ -28,9 +28,7 @@
#include "emul_chirp.h"
#include <string.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#ifndef STATIC_INLINE_EMUL_CHIRP
#define STATIC_INLINE_EMUL_CHIRP STATIC_INLINE
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c
index a8bfd27..51f8e98 100644
--- a/sim/ppc/emul_netbsd.c
+++ b/sim/ppc/emul_netbsd.c
@@ -72,10 +72,8 @@ int getrusage();
# endif
#endif
-#ifdef HAVE_UNISTD_H
#undef MAXPATHLEN /* sys/param.h might define this also */
#include <unistd.h>
-#endif
#include <stdlib.h>
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c
index 1d8b781..2872d23 100644
--- a/sim/ppc/emul_unix.c
+++ b/sim/ppc/emul_unix.c
@@ -115,10 +115,8 @@ int getrusage();
# endif
#endif
-#ifdef HAVE_UNISTD_H
#undef MAXPATHLEN /* sys/param.h might define this also */
#include <unistd.h>
-#endif
#include <stdlib.h>
#include <time.h>
diff --git a/sim/ppc/hw_com.c b/sim/ppc/hw_com.c
index 4ffd732..768d1ca 100644
--- a/sim/ppc/hw_com.c
+++ b/sim/ppc/hw_com.c
@@ -28,9 +28,7 @@
#include "device_table.h"
#include <string.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdlib.h>
/* DEVICE
diff --git a/sim/ppc/hw_disk.c b/sim/ppc/hw_disk.c
index 3a82520..54a11f6 100644
--- a/sim/ppc/hw_disk.c
+++ b/sim/ppc/hw_disk.c
@@ -26,10 +26,7 @@
#include "pk.h"
#include <stdio.h>
-
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#ifndef SEEK_SET
#define SEEK_SET 0
diff --git a/sim/ppc/hw_pal.c b/sim/ppc/hw_pal.c
index 8b07709..f858508 100644
--- a/sim/ppc/hw_pal.c
+++ b/sim/ppc/hw_pal.c
@@ -30,9 +30,7 @@
#include "cpu.h"
#include <string.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdlib.h>
diff --git a/sim/ppc/main.c b/sim/ppc/main.c
index 83b629e..aa1c85e 100644
--- a/sim/ppc/main.c
+++ b/sim/ppc/main.c
@@ -36,9 +36,7 @@
#include "sim/sim.h"
#include <stdlib.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <string.h>
#include <errno.h>
diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c
index 4e29ec9..8ab42af 100644
--- a/sim/ppc/mon.c
+++ b/sim/ppc/mon.c
@@ -26,9 +26,7 @@
#include <stdio.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/ppc/table.c b/sim/ppc/table.c
index 6399bda..da16967 100644
--- a/sim/ppc/table.c
+++ b/sim/ppc/table.c
@@ -29,9 +29,7 @@
#include "lf.h"
#include "table.h"
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdlib.h>
typedef struct _open_table open_table;