summaryrefslogtreecommitdiff
path: root/devel/sdcc/patches/patch-ag
blob: d3ae6e84c721a97007ecf389420c1308e28acd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ag,v 1.3 2001/04/23 17:33:06 wulf Exp $

--- support/gc/mach_dep.c.orig	Mon Oct 11 17:04:00 1999
+++ support/gc/mach_dep.c	Fri Aug 25 23:17:26 2000
@@ -197,6 +197,7 @@
 	&& !defined(SCO) && !defined(SCO_ELF) \
  	&& !(defined(LINUX)       && defined(__ELF__)) \
 	&& !(defined(__FreeBSD__) && defined(__ELF__)) \
+	&& !(defined(__NetBSD__) && defined(__ELF__)) \
 	&& !defined(DOS4GW)
 	/* I386 code, generic code does not appear to work */
 	/* It does appear to work under OS2, and asms dont */
@@ -212,6 +213,7 @@
 
 #	if ( defined(I386) && defined(LINUX) && defined(__ELF__) ) \
 	|| ( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) )
+	|| ( defined(I386) && defined(__NetBSD__) && defined(__ELF__) )
 
 	/* This is modified for Linux with ELF (Note: _ELF_ only) */
 	/* This section handles FreeBSD with ELF. */