blob: 14bcdcb0e7e5743b570c59f708c81b0467a02fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-crypto_dso_dso__dlfcn.c,v 1.1.6.1 2014/06/05 13:20:18 tron Exp $
* Debian GNU/kFreeBSD needs _GNU_SOURCE.
--- crypto/dso/dso_dlfcn.c.orig Mon Mar 17 16:14:20 2014
+++ crypto/dso/dso_dlfcn.c
@@ -60,7 +60,7 @@
that handle _GNU_SOURCE and other similar macros. Defining it later
is simply too late, because those headers are protected from re-
inclusion. */
-#ifdef __linux
+#if defined(__linux) || defined(__FreeBSD_kernel__)
# ifndef _GNU_SOURCE
# define _GNU_SOURCE /* make sure dladdr is declared */
# endif
|