summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/i386/md.c
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/i386/md.c
parentba533813bb2ba3c3d35ced609adf3f525e4cbcbc (diff)
openbsd
Diffstat (limited to 'gnu/usr.bin/ld/i386/md.c')
-rw-r--r--gnu/usr.bin/ld/i386/md.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/i386/md.c b/gnu/usr.bin/ld/i386/md.c
index 6f4dfdb475a..029c09235dd 100644
--- a/gnu/usr.bin/ld/i386/md.c
+++ b/gnu/usr.bin/ld/i386/md.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: md.c,v 1.1 1995/10/18 08:40:56 deraadt Exp $
+ * $Id: md.c,v 1.2 1996/09/30 22:29:26 deraadt Exp $
*/
#include <sys/param.h>
@@ -244,7 +244,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
@@ -287,7 +287,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)