apr/apr-visibility.patch
Petr Gajdos fbf953bbf5 - version update to 1.7.5 [bsc#1229783] CVE-2023-49582
*) Unix: Implement apr_shm_perms_set() for the "POSIX shm_open()"
     and "classic mmap" shared memory implementations.  [Joe Orton,
     Ruediger Pluem]
  *) Fix missing ';' for XML/HTML hex entities from apr_escape_entity().
     [Yann Ylavic]
  *) Fix crash in apr_pool_create() with --enable-pool-debug=all|owner.
     [Yann Ylavic]
  *) Improve platform detection by updating config.guess and config.sub.
     [Rainer Jung]
  *) CMake: Add support for CMAKE_WARNING_AS_ERROR. [Ivan Zhakov]
  *) CMake: Enable support for MSVC runtime library selection by abstraction.
     [Ivan Zhakov]
  *) CMake: Export installed targets (libapr-1, apr-1, libaprapp-1, aprapp-1)
     to apr:: namespace. [Ivan Zhakov]
- modified patches
  % apr-visibility.patch (refreshed)
  % reproducible.patch (refreshed)

OBS-URL: https://build.opensuse.org/package/show/Apache/apr?expand=0&rev=48
2024-09-18 10:16:28 +00:00

45 lines
1.6 KiB
Diff

Index: apr-1.7.5/include/apr.h.in
===================================================================
--- apr-1.7.5.orig/include/apr.h.in
+++ apr-1.7.5/include/apr.h.in
@@ -504,7 +504,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
@@ -517,7 +517,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.
@@ -533,7 +533,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.7.5/include/apr_support.h
===================================================================
--- apr-1.7.5.orig/include/apr_support.h
+++ apr-1.7.5/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);
/** @} */