diff options
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/OpenBSD.c | 1 | ||||
-rw-r--r-- | src/libmach/elfcorelinux386.c | 3 | ||||
-rw-r--r-- | src/libmach/machpower.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/libmach/OpenBSD.c b/src/libmach/OpenBSD.c new file mode 100644 index 00000000..3626e7c6 --- /dev/null +++ b/src/libmach/OpenBSD.c @@ -0,0 +1 @@ +#include "nosys.c" diff --git a/src/libmach/elfcorelinux386.c b/src/libmach/elfcorelinux386.c index 18f8bdfe..8fa74ab9 100644 --- a/src/libmach/elfcorelinux386.c +++ b/src/libmach/elfcorelinux386.c @@ -4,6 +4,9 @@ #include "elf.h" #include "ureg386.h" +#undef errno +#define errno uregerrno + typedef struct Lreg Lreg; typedef struct Status Status; typedef struct Psinfo Psinfo; diff --git a/src/libmach/machpower.c b/src/libmach/machpower.c index 701e9c65..141645a6 100644 --- a/src/libmach/machpower.c +++ b/src/libmach/machpower.c @@ -570,7 +570,7 @@ sub(Opcode *o, Instr *i) bprint(i, "\tR%d,$%d,R%d", i->ra, i->simm, i->rd); } -#define div qdiv +#define div power_div static void div(Opcode *o, Instr *i) |