os x changes

This commit is contained in:
rsc 2005-01-11 17:43:53 +00:00
parent 530d001641
commit b8f742db85
18 changed files with 92 additions and 44 deletions

1
src/libmach/OpenBSD.c Normal file
View file

@ -0,0 +1 @@
#include "nosys.c"

View file

@ -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;

View file

@ -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)