apr/apr-visibility.patch
Petr Gajdos a796eb3a5e Accepting request 606113 from home:matwey:branches:Apache
Update to 1.6.3 to fix building for armv7l

- Version 1.6.3:
 * apr_file_trunc: Truncating a buffered file could add unexpected
   data after the truncate position. PR 51017.
 * apr_file_trunc: Fix an issue where reading from a buffered file
   after truncate could return stale data from the buffer.
 * apr_ipsubnet_create() now fails for an empty input string.

OBS-URL: https://build.opensuse.org/request/show/606113
OBS-URL: https://build.opensuse.org/package/show/Apache/apr?expand=0&rev=13
2018-05-10 10:26:29 +00:00

45 lines
1.6 KiB
Diff

Index: apr-1.6.3/include/apr.h.in
===================================================================
--- apr-1.6.3.orig/include/apr.h.in
+++ apr-1.6.3/include/apr.h.in
@@ -477,7 +477,7 @@ typedef apr_uint32_t apr_uin
* headers, without defining APR_DECLARE_STATIC, will prepare the code to be
* linked to the dynamic library.
*/
-#define APR_DECLARE(type) type
+#define APR_DECLARE(type) __attribute__ ((visibility ("default"))) type
/**
* The public APR functions using variable arguments are declared with
@@ -490,7 +490,7 @@ typedef apr_uint32_t apr_uin
*
* </PRE>
*/
-#define APR_DECLARE_NONSTD(type) type
+#define APR_DECLARE_NONSTD(type) __attribute__ ((visibility ("default"))) type
/**
* The public APR variables are declared with AP_MODULE_DECLARE_DATA.
@@ -506,7 +506,7 @@ typedef apr_uint32_t apr_uin
*
* </PRE>
*/
-#define APR_DECLARE_DATA
+#define APR_DECLARE_DATA __attribute__ ((visibility ("default")))
#elif defined(APR_DECLARE_STATIC)
#define APR_DECLARE(type) type __stdcall
Index: apr-1.6.3/include/apr_support.h
===================================================================
--- apr-1.6.3.orig/include/apr_support.h
+++ apr-1.6.3/include/apr_support.h
@@ -45,7 +45,7 @@ extern "C" {
* otherwise wait for data to be able to be written.
* @return APR_TIMEUP if we run out of time.
*/
-apr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
+APR_DECLARE(apr_status_t) apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
int for_read);
/** @} */