sim: remove sys/times.h in most places

Message ID 20210504123619.8211-1-vapier@gentoo.org
State New
Headers show
Series
  • sim: remove sys/times.h in most places
Related show

Commit Message

Simon Marchi via Gdb-patches May 4, 2021, 12:36 p.m.
The v850 port used this, and then it got copied to other ports even
though it wasn't needed.  Clean it up to avoid portability issues on
platforms not providing this (e.g. mingw64 for Windows).
---
 sim/mcore/interp.c     | 1 -
 sim/mn10300/op_utils.c | 1 -
 sim/moxie/interp.c     | 1 -
 3 files changed, 3 deletions(-)

-- 
2.31.1

Patch

diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index 09e005f1d394..6eadf04d0491 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -21,7 +21,6 @@  along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <signal.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/times.h>
 #include <sys/param.h>
 #include <unistd.h>
 #include "bfd.h"
diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c
index 37d432376425..882ff4624099 100644
--- a/sim/mn10300/op_utils.c
+++ b/sim/mn10300/op_utils.c
@@ -8,7 +8,6 @@ 
 #endif
 #include <string.h>
 #include <sys/stat.h>
-#include <sys/times.h>
 #include <sys/time.h>
 
 
diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c
index 417ff9ea5503..4228dd5a4668 100644
--- a/sim/moxie/interp.c
+++ b/sim/moxie/interp.c
@@ -22,7 +22,6 @@  along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <signal.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/times.h>
 #include <sys/param.h>
 #include <unistd.h>
 #include "bfd.h"