diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2013-12-23 19:06:34 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2014-12-30 16:53:48 +0100 |
commit | 06c3e65deb062f1ee29c4567eedc50f482a36e70 (patch) | |
tree | 9ae64cd9bf00aa101a06973fbd601927a4e982c8 | |
parent | 5984c7e3d5672198e08d40db978d7eb4868a16eb (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>
-rw-r--r-- | crypto/dso/dso_dlfcn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c index 4a56aace0e..faa9d76b42 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> |