Commit c1844095 authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

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: default avatarRichard Levitte <levitte@openssl.org>
parent 8c00f4cf
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -60,11 +60,9 @@
   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
#endif

#include <stdio.h>
#include "cryptlib.h"