summaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-08-27 01:15:59 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-08 15:06:07 -0400
commitcd738d4daa0f36f37d1f73c84991c0ccf4433394 (patch)
tree0d7318d91880ab797c3a72bf5e208d57c0d465df /src/plugin.c
parent1a8d8e0ca519b49d9e5be57e5dd5c774dbacdeca (diff)
downloadlighttpd-git-cd738d4daa0f36f37d1f73c84991c0ccf4433394.tar.gz
[build] propagate HAVE_DLFCN_H in builds
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 2f348efe..5ef95b1d 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -14,8 +14,10 @@ array plugin_stats; /* global */
# include <valgrind/valgrind.h>
#endif
-#if !defined(__WIN32) && !defined(LIGHTTPD_STATIC)
-# include <dlfcn.h>
+#ifndef LIGHTTPD_STATIC
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
#endif
/*
*