diff options
author | rsc <devnull@localhost> | 2005-01-11 17:43:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-11 17:43:53 +0000 |
commit | b8f742db850ffc99333a97ab54fc820c6de0fd98 (patch) | |
tree | 9096b9872c0e65a3f1f3cdd7b993c58411d20e5e /src/libmach | |
parent | 530d00164177fd68e2aeb403e7b9be31823e3168 (diff) | |
download | plan9port-b8f742db850ffc99333a97ab54fc820c6de0fd98.tar.gz plan9port-b8f742db850ffc99333a97ab54fc820c6de0fd98.tar.bz2 plan9port-b8f742db850ffc99333a97ab54fc820c6de0fd98.zip |
os x changes
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) |