From abc8a7d8c81fa718185e459382ccee724ae55f12 Mon Sep 17 00:00:00 2001
From: orbitcowboy <orbitcowboy@web.de>
Date: Wed, 1 Jan 2025 12:56:02 +0100
Subject: [PATCH] posix.cfg: Added support for dlerror()

---
 cfg/posix.cfg | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cfg/posix.cfg b/cfg/posix.cfg
index 601b76db4d5..e74506c98f8 100644
--- a/cfg/posix.cfg
+++ b/cfg/posix.cfg
@@ -511,6 +511,13 @@
       <not-uninit/>
     </arg>
   </function>
+  <!-- see https://www.man7.org/linux/man-pages/man3/dlerror.3.html -->
+  <!-- char *dlerror(void); -->
+  <function name="dlerror">
+    <noreturn>false</noreturn>
+    <use-retval/>
+    <returnValue type="char*"/>
+  </function>
   <!-- see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html -->
   <!-- void *dlopen(const char *file, int mode); -->
   <function name="dlopen">