From 065319c78733d5596f8f614e136b3e93b04fb30c Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 12 Sep 2024 16:33:25 +0530 Subject: [PATCH] internal/dlsym: Define _GNU_SOURCE for RTLD_DEFAULT man dlsym(3) says the following: . . . The _GNU_SOURCE feature test macro must be defined in order to obtain the definitions of RTLD_DEFAULT and RTLD_NEXT from . . . . Signed-off-by: Anoop C S --- internal/dlsym/dlsym.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/dlsym/dlsym.go b/internal/dlsym/dlsym.go index 9e5782c..0c1ef1e 100644 --- a/internal/dlsym/dlsym.go +++ b/internal/dlsym/dlsym.go @@ -2,12 +2,10 @@ package dlsym // #cgo LDFLAGS: -ldl // +// #define _GNU_SOURCE +// // #include // #include -// -// #ifndef RTLD_DEFAULT /* from dlfcn.h */ -// #define RTLD_DEFAULT ((void *) 0) -// #endif import "C" import (