From 75f4acae861a9b3d16bb9337e0d01ec83a99487d Mon Sep 17 00:00:00 2001 From: Aymeric Date: Thu, 12 Oct 2023 17:36:32 +0200 Subject: [PATCH] Enable linking to glibc 2.2.5 as minimal version --- dns-override.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dns-override.c b/dns-override.c index de7f3d5..19d8ede 100644 --- a/dns-override.c +++ b/dns-override.c @@ -5,6 +5,10 @@ #include #include +// make code compatible with glibc 2.2.5. +__asm__(".symver dlsym,dlsym@GLIBC_2.2.5"); +__asm__(".symver fmemopen,fmemopen@GLIBC_2.2.5"); + static const char *RESOLV_CONF = "/etc/resolv.conf"; static const int RESOLV_SIZE = 16;