diff options
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/ChangeLog | 5 | ||||
-rw-r--r-- | sim/bfin/interp.c | 20 |
2 files changed, 6 insertions, 19 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 52ba04f..9a8777d 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,10 @@ 2021-06-12 Mike Frysinger <vapier@gentoo.org> + * interp.c: Include portability.h. + (getuid, getgid, geteuid, getegid setuid, setgid): Delete. + +2021-06-12 Mike Frysinger <vapier@gentoo.org> + * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT. * interp.c (sim_open): Set current_alignment. diff --git a/sim/bfin/interp.c b/sim/bfin/interp.c index 2e9696f..10de001 100644 --- a/sim/bfin/interp.c +++ b/sim/bfin/interp.c @@ -30,6 +30,7 @@ #include <unistd.h> #include <sys/time.h> +#include "portability.h" #include "sim/callback.h" #include "gdb/signals.h" #include "sim-main.h" @@ -74,25 +75,6 @@ #include "dv-bfin_cec.h" #include "dv-bfin_mmu.h" -#ifndef HAVE_GETUID -# define getuid() 0 -#endif -#ifndef HAVE_GETGID -# define getgid() 0 -#endif -#ifndef HAVE_GETEUID -# define geteuid() 0 -#endif -#ifndef HAVE_GETEGID -# define getegid() 0 -#endif -#ifndef HAVE_SETUID -# define setuid(uid) -1 -#endif -#ifndef HAVE_SETGID -# define setgid(gid) -1 -#endif - static const char cb_linux_stat_map_32[] = /* Linux kernel 32bit layout: */ "st_dev,2:space,2:st_ino,4:st_mode,2:st_nlink,2:st_uid,2:st_gid,2:st_rdev,2:" |