diff options
-rw-r--r-- | sim/ppc/emul_netbsd.c | 9 | ||||
-rw-r--r-- | sim/ppc/emul_unix.c | 9 | ||||
-rw-r--r-- | sim/ppc/mon.c | 1 |
3 files changed, 2 insertions, 17 deletions
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index 51f8e98..950f1f4 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -40,15 +40,8 @@ #include "emul_generic.h" #include "emul_netbsd.h" -#ifdef HAVE_GETRUSAGE -#ifndef HAVE_SYS_RESOURCE_H -#undef HAVE_GETRUSAGE -#endif -#endif - -#ifdef HAVE_GETRUSAGE +#ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> -int getrusage(); #endif #if HAVE_SYS_IOCTL_H diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index be9e838..88f6e3a 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -87,15 +87,8 @@ #include <sys/termio.h> #endif -#ifdef HAVE_GETRUSAGE -#ifndef HAVE_SYS_RESOURCE_H -#undef HAVE_GETRUSAGE -#endif -#endif - -#ifdef HAVE_GETRUSAGE +#ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> -int getrusage(); #endif #if HAVE_DIRENT_H diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c index 8ab42af..8bbabe6 100644 --- a/sim/ppc/mon.c +++ b/sim/ppc/mon.c @@ -36,7 +36,6 @@ #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> -int getrusage(); #endif #include "basics.h" |