freebsd-ports/www/websh/files/patch-dllexport
Mikhail Teterin cb1aab0fd8 Add patches to build and work with Apache-2.4 (which
has special requrements for users of ap_log_error())
and Tcl-8.6 (which uses -fvisibility=hidden if it can).

No functional changes for those, who were able to build
before, thus no PORTREVISION bump (I wish, previous
committer followed this rule too).
2013-08-03 22:28:37 +00:00

24 lines
668 B
Text

--- ../generic/macros.h 2007-03-19 13:18:37.000000000 -0400
+++ ../generic/macros.h 2013-08-03 17:39:59.000000000 -0400
@@ -29,8 +29,4 @@
#endif
-#ifndef WIN32
-#define __declspec(dllexport)
-#endif
-
#include "log.h"
--- ../generic/mod_websh.c 2009-06-12 09:37:16.000000000 -0400
+++ ../generic/mod_websh.c 2013-08-03 17:46:06.000000000 -0400
@@ -81,8 +81,8 @@
#ifndef APACHE2
-module MODULE_VAR_EXPORT websh_module;
+DLLEXPORT module MODULE_VAR_EXPORT websh_module;
#define APPOOL pool
#else /* APACHE2 */
-module AP_MODULE_DECLARE_DATA websh_module;
+DLLEXPORT module AP_MODULE_DECLARE_DATA websh_module;
#define APPOOL apr_pool_t
#endif /* APACHE2 */