summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/vax
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-30 22:29:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-30 22:29:33 +0000
commit795936581b97df87578dcbb4f515c8dae37258b8 (patch)
tree002b614e1d0467299373d1072ae2e4bd944cb609 /gnu/usr.bin/ld/vax
parentba533813bb2ba3c3d35ced609adf3f525e4cbcbc (diff)
openbsd
Diffstat (limited to 'gnu/usr.bin/ld/vax')
-rw-r--r--gnu/usr.bin/ld/vax/md.c6
-rw-r--r--gnu/usr.bin/ld/vax/md.h6
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, \