From b8f742db850ffc99333a97ab54fc820c6de0fd98 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 11 Jan 2005 17:43:53 +0000 Subject: os x changes --- src/libmach/OpenBSD.c | 1 + src/libmach/elfcorelinux386.c | 3 +++ src/libmach/machpower.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/libmach/OpenBSD.c (limited to 'src/libmach') 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) -- cgit v1.2.3