[packages/libzrtp] define feature macros to make some of the functions available
atler
atler at pld-linux.org
Sun Feb 2 15:24:39 CET 2025
commit 2c7de421c316c499925f692b41cfa80aba3cc528
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Feb 2 14:10:32 2025 +0100
define feature macros to make some of the functions available
usleep/random/srandom/strsignal
features.patch | 31 +++++++++++++++++++++++++++++++
libzrtp.spec | 4 +++-
2 files changed, 34 insertions(+), 1 deletion(-)
---
diff --git a/libzrtp.spec b/libzrtp.spec
index 2fb367b..811e81c 100644
--- a/libzrtp.spec
+++ b/libzrtp.spec
@@ -15,6 +15,7 @@ Group: Libraries
Source0: https://github.com/traviscross/libzrtp/archive/master.tar.gz
# Source0-md5: 58bddacc5a35f3271c7c7095e8b35d49
Patch0: %{name}-shared.patch
+Patch1: features.patch
URL: http://zfoneproject.com/prod_sdk.html
BuildRequires: autoconf
BuildRequires: automake
@@ -69,7 +70,8 @@ Dokumentacja API biblioteki ZRTP.
%prep
%setup -q -n %{name}-master
-%patch0 -p1
+%patch -P0 -p1
+%patch -P1 -p1
head -n78 src/zrtp_legal.c >LEGAL
diff --git a/features.patch b/features.patch
new file mode 100644
index 0000000..55779ff
--- /dev/null
+++ b/features.patch
@@ -0,0 +1,31 @@
+--- libzrtp-master/src/zrtp_iface_scheduler.c.orig 2012-07-07 20:59:23.000000000 +0200
++++ libzrtp-master/src/zrtp_iface_scheduler.c 2025-02-02 14:04:40.533291114 +0100
+@@ -7,6 +7,7 @@
+ * Viktor Krykun <v.krikun at zfoneproject.com>
+ */
+
++#define _DEFAULT_SOURCE
+ #include "zrtp.h"
+
+ #if (defined(ZRTP_USE_BUILTIN_SCEHDULER) && (ZRTP_USE_BUILTIN_SCEHDULER ==1))
+--- libzrtp-master/src/zrtp_cache_sqlite_backend.c.orig 2012-07-07 20:59:23.000000000 +0200
++++ libzrtp-master/src/zrtp_cache_sqlite_backend.c 2025-02-02 14:06:18.797190264 +0100
+@@ -1,6 +1,8 @@
+ /*
+ */
+
++#define _XOPEN_SOURCE
++#define _XOPEN_SOURCE_EXTENDED
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdint.h>
+--- libzrtp-master/test/cmockery/cmockery.c.orig 2012-07-07 20:59:23.000000000 +0200
++++ libzrtp-master/test/cmockery/cmockery.c 2025-02-02 14:07:31.270940910 +0100
+@@ -13,6 +13,7 @@
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
++#define _POSIX_C_SOURCE 200809L
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libzrtp.git/commitdiff/2c7de421c316c499925f692b41cfa80aba3cc528
More information about the pld-cvs-commit
mailing list