From 350fda32ef3230e0ccbbec44a0894bb319292309 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 22 Feb 2023 22:40:57 -0500 Subject: [build] _WIN32 __declspec(dllexport) *_plugin_init _WIN32 __declspec(dllexport) on mod_*_plugin_init() --- src/first.h | 17 +++++++++++++++++ src/h2.c | 1 + src/mod_access.c | 1 + src/mod_accesslog.c | 1 + src/mod_ajp13.c | 1 + src/mod_alias.c | 1 + src/mod_auth.c | 1 + src/mod_authn_dbi.c | 1 + src/mod_authn_file.c | 1 + src/mod_authn_gssapi.c | 1 + src/mod_authn_ldap.c | 1 + src/mod_authn_pam.c | 1 + src/mod_authn_sasl.c | 1 + src/mod_cgi.c | 1 + src/mod_deflate.c | 1 + src/mod_dirlisting.c | 1 + src/mod_echo.c | 1 + src/mod_evhost.c | 1 + src/mod_expire.c | 1 + src/mod_extforward.c | 1 + src/mod_fastcgi.c | 1 + src/mod_gnutls.c | 1 + src/mod_indexfile.c | 1 + src/mod_magnet.c | 1 + src/mod_maxminddb.c | 1 + src/mod_mbedtls.c | 1 + src/mod_nss.c | 1 + src/mod_openssl.c | 1 + src/mod_proxy.c | 1 + src/mod_redirect.c | 1 + src/mod_rewrite.c | 1 + src/mod_rrdtool.c | 1 + src/mod_scgi.c | 1 + src/mod_setenv.c | 1 + src/mod_simple_vhost.c | 1 + src/mod_skeleton.c | 1 + src/mod_sockproxy.c | 1 + src/mod_ssi.c | 1 + src/mod_staticfile.c | 1 + src/mod_status.c | 1 + src/mod_userdir.c | 1 + src/mod_vhostdb.c | 1 + src/mod_vhostdb_dbi.c | 1 + src/mod_vhostdb_ldap.c | 1 + src/mod_vhostdb_mysql.c | 1 + src/mod_vhostdb_pgsql.c | 1 + src/mod_webdav.c | 1 + src/mod_wolfssl.c | 1 + src/mod_wstunnel.c | 1 + 49 files changed, 65 insertions(+) (limited to 'src') diff --git a/src/first.h b/src/first.h index cfd1c694..f02925e0 100644 --- a/src/first.h +++ b/src/first.h @@ -27,6 +27,23 @@ #define __STDC_WANT_LIB_EXT1__ 1 #endif +#ifndef LIGHTTPD_STATIC +#ifdef _MSC_VER +#ifndef __declspec_dllexport__ +#define __declspec_dllexport__ __declspec(dllexport) +#endif +#ifndef __declspec_dllimport__ +#define __declspec_dllimport__ __declspec(dllimport) +#endif +#endif +#endif +#ifndef __declspec_dllexport__ +#define __declspec_dllexport__ +#endif +#ifndef __declspec_dllimport__ +#define __declspec_dllimport__ +#endif + #ifdef _WIN32 /* https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers */ /* http://web.archive.org/web/20121219084749/http://support.microsoft.com/kb/166474 */ diff --git a/src/h2.c b/src/h2.c index 6cabadaf..5e817068 100644 --- a/src/h2.c +++ b/src/h2.c @@ -3449,6 +3449,7 @@ INIT_FUNC(mod_h2_init) { __attribute_cold__ +__declspec_dllexport__ int mod_h2_plugin_init (plugin *p); int mod_h2_plugin_init (plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_access.c b/src/mod_access.c index 7a8b1a6c..9956a59d 100644 --- a/src/mod_access.c +++ b/src/mod_access.c @@ -136,6 +136,7 @@ URIHANDLER_FUNC(mod_access_uri_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_access_plugin_init(plugin *p); int mod_access_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c index 183db17b..0e0c14fdb 100644 --- a/src/mod_accesslog.c +++ b/src/mod_accesslog.c @@ -1030,6 +1030,7 @@ REQUESTDONE_FUNC(log_access_write) { __attribute_cold__ +__declspec_dllexport__ int mod_accesslog_plugin_init(plugin *p); int mod_accesslog_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_ajp13.c b/src/mod_ajp13.c index e3dd04fa..8bed8df7 100644 --- a/src/mod_ajp13.c +++ b/src/mod_ajp13.c @@ -991,6 +991,7 @@ ajp13_check_extension (request_st * const r, void *p_d) __attribute_cold__ +__declspec_dllexport__ int mod_ajp13_plugin_init (plugin *p); int mod_ajp13_plugin_init (plugin *p) { diff --git a/src/mod_alias.c b/src/mod_alias.c index f10b2340..fb431370 100644 --- a/src/mod_alias.c +++ b/src/mod_alias.c @@ -182,6 +182,7 @@ PHYSICALPATH_FUNC(mod_alias_physical_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_alias_plugin_init(plugin *p); int mod_alias_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_auth.c b/src/mod_auth.c index 0cd88c9a..11cee1e1 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -692,6 +692,7 @@ static handler_t mod_auth_uri_handler(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_auth_plugin_init(plugin *p); int mod_auth_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_authn_dbi.c b/src/mod_authn_dbi.c index 825caaed..0d18865c 100644 --- a/src/mod_authn_dbi.c +++ b/src/mod_authn_dbi.c @@ -588,6 +588,7 @@ mod_authn_dbi_digest (request_st * const r, void *p_d, http_auth_info_t * const __attribute_cold__ +__declspec_dllexport__ int mod_authn_dbi_plugin_init (plugin *p); int mod_authn_dbi_plugin_init (plugin *p) { diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c index ffedcc25..91931bee 100644 --- a/src/mod_authn_file.c +++ b/src/mod_authn_file.c @@ -740,6 +740,7 @@ static handler_t mod_authn_file_htpasswd_basic(request_st * const r, void *p_d, __attribute_cold__ +__declspec_dllexport__ int mod_authn_file_plugin_init(plugin *p); int mod_authn_file_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_authn_gssapi.c b/src/mod_authn_gssapi.c index 78e30437..0f402c2b 100644 --- a/src/mod_authn_gssapi.c +++ b/src/mod_authn_gssapi.c @@ -796,6 +796,7 @@ REQUEST_FUNC(mod_authn_gssapi_handle_reset) { __attribute_cold__ +__declspec_dllexport__ int mod_authn_gssapi_plugin_init(plugin *p); int mod_authn_gssapi_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_authn_ldap.c b/src/mod_authn_ldap.c index fc866135..feb63283 100644 --- a/src/mod_authn_ldap.c +++ b/src/mod_authn_ldap.c @@ -816,6 +816,7 @@ static handler_t mod_authn_ldap_basic(request_st * const r, void *p_d, const htt __attribute_cold__ +__declspec_dllexport__ int mod_authn_ldap_plugin_init(plugin *p); int mod_authn_ldap_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_authn_pam.c b/src/mod_authn_pam.c index b985216d..5d80b9ec 100644 --- a/src/mod_authn_pam.c +++ b/src/mod_authn_pam.c @@ -173,6 +173,7 @@ static handler_t mod_authn_pam_basic(request_st * const r, void *p_d, const http __attribute_cold__ +__declspec_dllexport__ int mod_authn_pam_plugin_init(plugin *p); int mod_authn_pam_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_authn_sasl.c b/src/mod_authn_sasl.c index 4c0a2335..ed74d175 100644 --- a/src/mod_authn_sasl.c +++ b/src/mod_authn_sasl.c @@ -294,6 +294,7 @@ static handler_t mod_authn_sasl_basic(request_st * const r, void *p_d, const htt __attribute_cold__ +__declspec_dllexport__ int mod_authn_sasl_plugin_init(plugin *p); int mod_authn_sasl_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_cgi.c b/src/mod_cgi.c index b802c1c8..a4839837 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -1330,6 +1330,7 @@ static handler_t cgi_waitpid_cb(server *srv, void *p_d, pid_t pid, int status) { __attribute_cold__ +__declspec_dllexport__ int mod_cgi_plugin_init(plugin *p); int mod_cgi_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_deflate.c b/src/mod_deflate.c index 9a6f72f3..a2d99c0c 100644 --- a/src/mod_deflate.c +++ b/src/mod_deflate.c @@ -2189,6 +2189,7 @@ static handler_t mod_deflate_cleanup(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_deflate_plugin_init(plugin *p); int mod_deflate_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index 5564197e..f0f037cc 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -1765,6 +1765,7 @@ static void mod_dirlisting_cache_json (request_st * const r, handler_ctx * const __attribute_cold__ +__declspec_dllexport__ int mod_dirlisting_plugin_init(plugin *p); int mod_dirlisting_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_echo.c b/src/mod_echo.c index 919b0f98..0c2bb6da 100644 --- a/src/mod_echo.c +++ b/src/mod_echo.c @@ -135,6 +135,7 @@ URIHANDLER_FUNC(mod_echo_handle_uri_clean) { __attribute_cold__ +__declspec_dllexport__ int mod_echo_plugin_init(plugin *p); int mod_echo_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_evhost.c b/src/mod_evhost.c index 258cb11c..2d777662 100644 --- a/src/mod_evhost.c +++ b/src/mod_evhost.c @@ -347,6 +347,7 @@ static handler_t mod_evhost_uri_handler(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_evhost_plugin_init(plugin *p); int mod_evhost_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_expire.c b/src/mod_expire.c index de724992..a88b774d 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -341,6 +341,7 @@ REQUEST_FUNC(mod_expire_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_expire_plugin_init(plugin *p); int mod_expire_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_extforward.c b/src/mod_extforward.c index 482d21a9..e0c60cae 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -1187,6 +1187,7 @@ CONNECTION_FUNC(mod_extforward_handle_con_accept) __attribute_cold__ +__declspec_dllexport__ int mod_extforward_plugin_init(plugin *p); int mod_extforward_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c index ae8d7e68..b857b370 100644 --- a/src/mod_fastcgi.c +++ b/src/mod_fastcgi.c @@ -515,6 +515,7 @@ static handler_t fcgi_check_extension_2(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_fastcgi_plugin_init(plugin *p); int mod_fastcgi_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_gnutls.c b/src/mod_gnutls.c index 3e3849c3..d091243a 100644 --- a/src/mod_gnutls.c +++ b/src/mod_gnutls.c @@ -2996,6 +2996,7 @@ TRIGGER_FUNC(mod_gnutls_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_gnutls_plugin_init (plugin *p); int mod_gnutls_plugin_init (plugin *p) { diff --git a/src/mod_indexfile.c b/src/mod_indexfile.c index 27c40488..94cb42ad 100644 --- a/src/mod_indexfile.c +++ b/src/mod_indexfile.c @@ -159,6 +159,7 @@ URIHANDLER_FUNC(mod_indexfile_subrequest) { __attribute_cold__ +__declspec_dllexport__ int mod_indexfile_plugin_init(plugin *p); int mod_indexfile_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_magnet.c b/src/mod_magnet.c index c08c476d..70baa813 100644 --- a/src/mod_magnet.c +++ b/src/mod_magnet.c @@ -3393,6 +3393,7 @@ SUBREQUEST_FUNC(mod_magnet_handle_subrequest) { __attribute_cold__ +__declspec_dllexport__ int mod_magnet_plugin_init(plugin *p); int mod_magnet_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_maxminddb.c b/src/mod_maxminddb.c index fb5dc850..8e7c5d81 100644 --- a/src/mod_maxminddb.c +++ b/src/mod_maxminddb.c @@ -77,6 +77,7 @@ REQUEST_FUNC(mod_maxminddb_request_env_handler); CONNECTION_FUNC(mod_maxminddb_handle_con_close); __attribute_cold__ +__declspec_dllexport__ int mod_maxminddb_plugin_init(plugin *p); int mod_maxminddb_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_mbedtls.c b/src/mod_mbedtls.c index 152f52fe..8da81fce 100644 --- a/src/mod_mbedtls.c +++ b/src/mod_mbedtls.c @@ -2722,6 +2722,7 @@ TRIGGER_FUNC(mod_mbedtls_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_mbedtls_plugin_init (plugin *p); int mod_mbedtls_plugin_init (plugin *p) { diff --git a/src/mod_nss.c b/src/mod_nss.c index bcdaaa84..1d800706 100644 --- a/src/mod_nss.c +++ b/src/mod_nss.c @@ -2694,6 +2694,7 @@ TRIGGER_FUNC(mod_nss_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_nss_plugin_init (plugin *p); int mod_nss_plugin_init (plugin *p) { diff --git a/src/mod_openssl.c b/src/mod_openssl.c index 273954fe..46a86d49 100644 --- a/src/mod_openssl.c +++ b/src/mod_openssl.c @@ -3692,6 +3692,7 @@ TRIGGER_FUNC(mod_openssl_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_openssl_plugin_init (plugin *p); int mod_openssl_plugin_init (plugin *p) { diff --git a/src/mod_proxy.c b/src/mod_proxy.c index f942b3ac..e3387e2c 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -1172,6 +1172,7 @@ static handler_t mod_proxy_check_extension(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_proxy_plugin_init(plugin *p); int mod_proxy_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_redirect.c b/src/mod_redirect.c index 2697b374..9c3ce888 100644 --- a/src/mod_redirect.c +++ b/src/mod_redirect.c @@ -204,6 +204,7 @@ URIHANDLER_FUNC(mod_redirect_uri_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_redirect_plugin_init(plugin *p); int mod_redirect_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_rewrite.c b/src/mod_rewrite.c index 112addb6..170e2205 100644 --- a/src/mod_rewrite.c +++ b/src/mod_rewrite.c @@ -353,6 +353,7 @@ URIHANDLER_FUNC(mod_rewrite_uri_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_rewrite_plugin_init(plugin *p); int mod_rewrite_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_rrdtool.c b/src/mod_rrdtool.c index 0e3d4c0e..5ceeec1a 100644 --- a/src/mod_rrdtool.c +++ b/src/mod_rrdtool.c @@ -432,6 +432,7 @@ REQUESTDONE_FUNC(mod_rrd_account) { __attribute_cold__ +__declspec_dllexport__ int mod_rrdtool_plugin_init(plugin *p); int mod_rrdtool_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_scgi.c b/src/mod_scgi.c index 13f79543..b9ea56d4 100644 --- a/src/mod_scgi.c +++ b/src/mod_scgi.c @@ -282,6 +282,7 @@ static handler_t scgi_check_extension_2(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_scgi_plugin_init(plugin *p); int mod_scgi_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_setenv.c b/src/mod_setenv.c index 3bed9aad..59b2a285 100644 --- a/src/mod_setenv.c +++ b/src/mod_setenv.c @@ -281,6 +281,7 @@ REQUEST_FUNC(mod_setenv_handle_request_reset) { __attribute_cold__ +__declspec_dllexport__ int mod_setenv_plugin_init(plugin *p); int mod_setenv_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_simple_vhost.c b/src/mod_simple_vhost.c index 6b5e4dcb..7f7ecf82 100644 --- a/src/mod_simple_vhost.c +++ b/src/mod_simple_vhost.c @@ -197,6 +197,7 @@ static handler_t mod_simple_vhost_docroot(request_st * const r, void *p_data) { __attribute_cold__ +__declspec_dllexport__ int mod_simple_vhost_plugin_init(plugin *p); int mod_simple_vhost_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_skeleton.c b/src/mod_skeleton.c index 793e0dfa..bf29545e 100644 --- a/src/mod_skeleton.c +++ b/src/mod_skeleton.c @@ -133,6 +133,7 @@ URIHANDLER_FUNC(mod_skeleton_uri_handler) { /* this function is called at dlopen() time and inits the callbacks */ __attribute_cold__ +__declspec_dllexport__ int mod_skeleton_plugin_init(plugin *p); int mod_skeleton_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_sockproxy.c b/src/mod_sockproxy.c index 1b6bcbe3..966b3d73 100644 --- a/src/mod_sockproxy.c +++ b/src/mod_sockproxy.c @@ -169,6 +169,7 @@ static handler_t mod_sockproxy_connection_accept(connection *con, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_sockproxy_plugin_init(plugin *p); int mod_sockproxy_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_ssi.c b/src/mod_ssi.c index 7c840c00..fabd049a 100644 --- a/src/mod_ssi.c +++ b/src/mod_ssi.c @@ -1672,6 +1672,7 @@ static handler_t mod_ssi_handle_request_reset(request_st * const r, void *p_d) { __attribute_cold__ +__declspec_dllexport__ int mod_ssi_plugin_init(plugin *p); int mod_ssi_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c index eff1fd3c..3da7dc02 100644 --- a/src/mod_staticfile.c +++ b/src/mod_staticfile.c @@ -146,6 +146,7 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) { __attribute_cold__ +__declspec_dllexport__ int mod_staticfile_plugin_init(plugin *p); int mod_staticfile_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_status.c b/src/mod_status.c index 8f9c7961..38fea9f0 100644 --- a/src/mod_status.c +++ b/src/mod_status.c @@ -849,6 +849,7 @@ REQUESTDONE_FUNC(mod_status_account) { __attribute_cold__ +__declspec_dllexport__ int mod_status_plugin_init(plugin *p); int mod_status_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_userdir.c b/src/mod_userdir.c index 00f98cab..59ef21d0 100644 --- a/src/mod_userdir.c +++ b/src/mod_userdir.c @@ -331,6 +331,7 @@ URIHANDLER_FUNC(mod_userdir_docroot_handler) { __attribute_cold__ +__declspec_dllexport__ int mod_userdir_plugin_init(plugin *p); int mod_userdir_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_vhostdb.c b/src/mod_vhostdb.c index 60ec170c..536ffbd7 100644 --- a/src/mod_vhostdb.c +++ b/src/mod_vhostdb.c @@ -381,6 +381,7 @@ TRIGGER_FUNC(mod_vhostdb_periodic) __attribute_cold__ +__declspec_dllexport__ int mod_vhostdb_plugin_init(plugin *p); int mod_vhostdb_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_vhostdb_dbi.c b/src/mod_vhostdb_dbi.c index c7c11194..bf862f01 100644 --- a/src/mod_vhostdb_dbi.c +++ b/src/mod_vhostdb_dbi.c @@ -329,6 +329,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) { __attribute_cold__ +__declspec_dllexport__ int mod_vhostdb_dbi_plugin_init (plugin *p); int mod_vhostdb_dbi_plugin_init (plugin *p) { diff --git a/src/mod_vhostdb_ldap.c b/src/mod_vhostdb_ldap.c index 5644ad09..3ea34dec 100644 --- a/src/mod_vhostdb_ldap.c +++ b/src/mod_vhostdb_ldap.c @@ -584,6 +584,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) { __attribute_cold__ +__declspec_dllexport__ int mod_vhostdb_ldap_plugin_init (plugin *p); int mod_vhostdb_ldap_plugin_init (plugin *p) { diff --git a/src/mod_vhostdb_mysql.c b/src/mod_vhostdb_mysql.c index b49b0617..5b0a515b 100644 --- a/src/mod_vhostdb_mysql.c +++ b/src/mod_vhostdb_mysql.c @@ -292,6 +292,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) { __attribute_cold__ +__declspec_dllexport__ int mod_vhostdb_mysql_plugin_init (plugin *p); int mod_vhostdb_mysql_plugin_init (plugin *p) { diff --git a/src/mod_vhostdb_pgsql.c b/src/mod_vhostdb_pgsql.c index 67c562de..72123c5b 100644 --- a/src/mod_vhostdb_pgsql.c +++ b/src/mod_vhostdb_pgsql.c @@ -269,6 +269,7 @@ SETDEFAULTS_FUNC(mod_vhostdb_set_defaults) { __attribute_cold__ +__declspec_dllexport__ int mod_vhostdb_pgsql_plugin_init (plugin *p); int mod_vhostdb_pgsql_plugin_init (plugin *p) { diff --git a/src/mod_webdav.c b/src/mod_webdav.c index cbdb815e..3e752cc8 100644 --- a/src/mod_webdav.c +++ b/src/mod_webdav.c @@ -299,6 +299,7 @@ SUBREQUEST_FUNC(mod_webdav_subrequest_handler); REQUEST_FUNC(mod_webdav_handle_reset); __attribute_cold__ +__declspec_dllexport__ int mod_webdav_plugin_init(plugin *p); int mod_webdav_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; diff --git a/src/mod_wolfssl.c b/src/mod_wolfssl.c index cd36c1af..2459396d 100644 --- a/src/mod_wolfssl.c +++ b/src/mod_wolfssl.c @@ -3394,6 +3394,7 @@ TRIGGER_FUNC(mod_openssl_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_wolfssl_plugin_init (plugin *p); int mod_wolfssl_plugin_init (plugin *p) { diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c index 2c168d05..8181e8f2 100644 --- a/src/mod_wstunnel.c +++ b/src/mod_wstunnel.c @@ -636,6 +636,7 @@ TRIGGER_FUNC(mod_wstunnel_handle_trigger) { __attribute_cold__ +__declspec_dllexport__ int mod_wstunnel_plugin_init(plugin *p); int mod_wstunnel_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; -- cgit v1.2.1