Merge from vendor branch TNF:
[pkgsrc.git] / devel / boehm-gc / patches / patch-ag
1 $NetBSD$
2
3 --- mach_dep.c.orig     Sat Apr 15 05:57:14 2000
4 +++ mach_dep.c  Sat May  6 04:59:30 2000
5 @@ -220,8 +220,10 @@
6  #       if defined(I386) &&!defined(OS2) &&!defined(SVR4) \
7         && (defined(__MINGW32__) || !defined(MSWIN32)) \
8         && !defined(SCO) && !defined(SCO_ELF) \
9 -       && !(defined(LINUX)       && defined(__ELF__)) \
10 +       && !(defined(LINUX) && defined(__ELF__)) \
11         && !(defined(FREEBSD) && defined(__ELF__)) \
12 +       && !(defined(NETBSD) && defined(__ELF__)) \
13 +       && !(defined(OPENBSD) && defined(__ELF__)) \
14         && !defined(DOS4GW)
15         /* I386 code, generic code does not appear to work */
16         /* It does appear to work under OS2, and asms dont */
17 @@ -236,7 +238,9 @@
18  #       endif
19  
20  #      if ( defined(I386) && defined(LINUX) && defined(__ELF__) ) \
21 -       || ( defined(I386) && defined(FREEBSD) && defined(__ELF__) )
22 +       || ( defined(I386) && defined(FREEBSD) && defined(__ELF__) ) \
23 +       || ( defined(I386) && defined(NETBSD) && defined(__ELF__) ) \
24 +       || ( defined(I386) && defined(OPENBSD) && defined(__ELF__) )
25  
26         /* This is modified for Linux with ELF (Note: _ELF_ only) */
27         /* This section handles FreeBSD with ELF. */