summaryrefslogtreecommitdiff
path: root/lang/gcc6/patches/patch-libgcc_crtstuff.c
blob: f2aee2541d738ff66c18c3d3897f3c9a4d606c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-libgcc_crtstuff.c,v 1.1 2016/09/12 22:13:54 maya Exp $

--- libgcc/crtstuff.c.orig	2014-09-22 00:49:01.000000000 +0000
+++ libgcc/crtstuff.c
@@ -81,7 +81,8 @@ call_ ## FUNC (void)					\
 #endif
 
 #if defined(TARGET_DL_ITERATE_PHDR) && \
-   (defined(__DragonFly__) || defined(__FreeBSD__))
+   (defined(__DragonFly__) || defined(__FreeBSD__) || \
+   defined(__NetBSD__) || defined(__OpenBSD__))
 #define BSD_DL_ITERATE_PHDR_AVAILABLE
 #endif