summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_dlfcn.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2013-12-23 19:06:34 +0100
committerKurt Roeckx <kurt@roeckx.be>2014-12-30 16:46:46 +0100
commitc18440956dd4a756e778b05d6ceadc27bd034edb (patch)
tree0eeb77cae3ccbf502739ed3302bf2b733bcf7cdc /crypto/dso/dso_dlfcn.c
parent8c00f4cfd2e4265f39e8fa0e3d10406a542647f0 (diff)
dlfcn: always define _GNU_SOURCE
We need this for the freebsd kernel with glibc as used in the Debian kfreebsd ports. There shouldn't be a problem defining this on systems not using glibc. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/dso/dso_dlfcn.c')
-rw-r--r--crypto/dso/dso_dlfcn.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c
index 0135cc1cd3..32386c6eae 100644
--- a/crypto/dso/dso_dlfcn.c
+++ b/crypto/dso/dso_dlfcn.c
@@ -60,10 +60,8 @@
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
-# ifndef _GNU_SOURCE
-# define _GNU_SOURCE /* make sure dladdr is declared */
-# endif
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE /* make sure dladdr is declared */
#endif
#include <stdio.h>