diff options
Diffstat (limited to 'gnu/usr.bin/ld/vax')
-rw-r--r-- | gnu/usr.bin/ld/vax/md.c | 6 | ||||
-rw-r--r-- | gnu/usr.bin/ld/vax/md.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gnu/usr.bin/ld/vax/md.c b/gnu/usr.bin/ld/vax/md.c index f7f9573983f..a5e5b461186 100644 --- a/gnu/usr.bin/ld/vax/md.c +++ b/gnu/usr.bin/ld/vax/md.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md.c,v 1.1 1996/07/27 10:40:00 maja Exp $ */ +/* $OpenBSD: md.c,v 1.2 1996/09/30 22:29:32 deraadt Exp $ */ /* $NetBSD: md.c,v 1.1 1995/10/19 13:10:19 ragge Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -245,7 +245,7 @@ md_init_header(hp, magic, flags) struct exec *hp; int magic, flags; { -#ifdef NetBSD +#if defined(__NetBSD__) || defined(__OpenBSD__) if (oldmagic || magic == QMAGIC) hp->a_midmag = magic; else @@ -288,7 +288,7 @@ void md_swapout_exec_hdr(h) struct exec *h; { - /* NetBSD: Always leave magic alone */ + /* NetBSD/OpenBSD: Always leave magic alone */ int skip = 1; #if 0 if (N_GETMAGIC(*h) == OMAGIC) diff --git a/gnu/usr.bin/ld/vax/md.h b/gnu/usr.bin/ld/vax/md.h index e05eb618018..65bf5112a45 100644 --- a/gnu/usr.bin/ld/vax/md.h +++ b/gnu/usr.bin/ld/vax/md.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md.h,v 1.1 1996/07/27 10:40:01 maja Exp $ */ +/* $OpenBSD: md.h,v 1.2 1996/09/30 22:29:32 deraadt Exp $ */ /* $NetBSD: md.h,v 1.1 1995/10/19 13:10:20 ragge Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -38,13 +38,13 @@ #define MAX_ALIGNMENT (sizeof (long)) -#ifdef NetBSD +#if defined(__NetBSD__) || defined(__OpenBSD__) #define PAGSIZ __LDPGSZ #else #define PAGSIZ 1024 #endif -#if defined(NetBSD) || defined(CROSS_LINKER) +#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(CROSS_LINKER) #define N_SET_FLAG(ex,f) (oldmagic || N_GETMAGIC(ex)==QMAGIC ? (0) : \ N_SETMAGIC(ex, \ |