summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kozadaev <[email protected]>2023-05-15 18:57:48 +0300
committerMichele Calgaro <[email protected]>2023-05-16 10:22:54 +0900
commitd24bd281e9c5b0d45d30dc36dff2c32ca5f3ca27 (patch)
tree43235f9dfc3b0c036752573d28fc4bc614e446ec
parent0f92944b23894ebef2cb0e931c59b77017998b34 (diff)
downloadlibltdl-d24bd281e9c5b0d45d30dc36dff2c32ca5f3ca27.tar.gz
libltdl-d24bd281e9c5b0d45d30dc36dff2c32ca5f3ca27.zip
add illumos sys/dl.h include condition
Signed-off-by: Denis Kozadaev <[email protected]> (cherry picked from commit ac2c70d91ae41e2c7aa8c1e03c847d3b78475785)
-rw-r--r--ltdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltdl.c b/ltdl.c
index 9b4dccb..4ea9abf 100644
--- a/ltdl.c
+++ b/ltdl.c
@@ -654,6 +654,10 @@ int lt_dlopen_flag = 0;
# include <dl.h>
#endif
+#ifdef HAVE_SYS_DL_H
+# include <sys/dl.h>
+#endif
+
/* some flags are missing on some systems, so we provide
* harmless defaults.
*