cast time_t values and change include directory
This commit is contained in:
parent
f84b9eacbc
commit
85334de979
@ -0,0 +1,28 @@
|
|||||||
|
From 52de41970582ec69f94fa32ec62f84a70dbd6345 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Pascal=20B=C3=BChler?= <pabuhler@cisco.com>
|
||||||
|
Date: Mon, 11 Oct 2021 10:40:26 +0200
|
||||||
|
Subject: [PATCH] cast time_t values to known types for formatting in fprintf
|
||||||
|
|
||||||
|
This is a fix suggested in issue #566 to address build issues
|
||||||
|
with debian x32.
|
||||||
|
---
|
||||||
|
test/rtp_decoder.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/rtp_decoder.c b/test/rtp_decoder.c
|
||||||
|
index 6d88e43..9bbf62e 100644
|
||||||
|
--- a/test/rtp_decoder.c
|
||||||
|
+++ b/test/rtp_decoder.c
|
||||||
|
@@ -792,7 +792,7 @@ void rtp_decoder_handle_pkt(u_char *arg,
|
||||||
|
dcdr->rtcp_cnt++;
|
||||||
|
}
|
||||||
|
timersub(&hdr->ts, &dcdr->start_tv, &delta);
|
||||||
|
- fprintf(stdout, "%02ld:%02ld.%06ld\n", delta.tv_sec / 60, delta.tv_sec % 60,
|
||||||
|
- (long)delta.tv_usec);
|
||||||
|
+ fprintf(stdout, "%02ld:%02d.%06ld\n", (long)(delta.tv_sec / 60),
|
||||||
|
+ (int)(delta.tv_sec % 60), (long)delta.tv_usec);
|
||||||
|
hexdump(&message, octets_recvd);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.42.0.windows.2
|
||||||
|
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
From 1e7b25f4a957e290d362c3e67afa2c8bac8be82c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stepan Saiko <ssaiko@naumen.ru>
|
||||||
|
Date: Sun, 10 Oct 2021 13:33:52 +0500
|
||||||
|
Subject: [PATCH] Include directory should point to 'include' not to
|
||||||
|
'include/srtp2'
|
||||||
|
|
||||||
|
---
|
||||||
|
include/srtp2/meson.build | 1 -
|
||||||
|
meson.build | 3 ++-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/include/srtp2/meson.build b/include/srtp2/meson.build
|
||||||
|
index 88d068a..9b8390e 100644
|
||||||
|
--- a/include/srtp2/meson.build
|
||||||
|
+++ b/include/srtp2/meson.build
|
||||||
|
@@ -5,4 +5,3 @@ foreach h : public_headers
|
||||||
|
output: '@BASENAME@.h',
|
||||||
|
copy: true)
|
||||||
|
endforeach
|
||||||
|
-public_incs = include_directories('.')
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 226b05c..a25197a 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -264,7 +264,8 @@ else
|
||||||
|
libsrtp2 = libsrtp2_static
|
||||||
|
endif
|
||||||
|
|
||||||
|
-subdir('include/srtp2') # copies public_headers into the builddir and sets public_incs
|
||||||
|
+subdir('include/srtp2') # copies public_headers into the builddir
|
||||||
|
+public_incs = include_directories('include') # sets public_incs
|
||||||
|
|
||||||
|
libsrtp2_dep = declare_dependency(link_with: libsrtp2,
|
||||||
|
include_directories: public_incs)
|
||||||
|
--
|
||||||
|
2.42.0.windows.2
|
||||||
|
|
||||||
11
libsrtp.spec
11
libsrtp.spec
@ -1,6 +1,6 @@
|
|||||||
Name: libsrtp
|
Name: libsrtp
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 1
|
Release: 3
|
||||||
Summary: Library for SRTP (Secure Realtime Transport Protocol)
|
Summary: Library for SRTP (Secure Realtime Transport Protocol)
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/cisco/libsrtp
|
URL: https://github.com/cisco/libsrtp
|
||||||
@ -8,6 +8,9 @@ Source0: https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz
|
|||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
|
Patch0001: 0001-cast-time_t-values-to-known-types-for-formatting-in-.patch
|
||||||
|
Patch0002: 0002-Include-directory-should-point-to-include-not-to-inc.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides an implementation of the Secure Real-time Transport Protocol (SRTP),
|
This package provides an implementation of the Secure Real-time Transport Protocol (SRTP),
|
||||||
the Universal Security Transform (UST), and a supporting cryptographic kernel.
|
the Universal Security Transform (UST), and a supporting cryptographic kernel.
|
||||||
@ -47,6 +50,12 @@ development of %{name}.
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 22 2023 liubo <liubo1@xfusion.com> - 2.4.2-3
|
||||||
|
- Include directory should point to 'include' not to 'include/srtp2'
|
||||||
|
|
||||||
|
* Thu Oct 19 2023 liubo <liubo1@xfusion.com> - 2.4.2-2
|
||||||
|
- cast time_t values to known types for formatting in fprintf
|
||||||
|
|
||||||
* Fri Jan 14 2022 wangkai <wangkai385@huawei.com> - 2.4.2-1
|
* Fri Jan 14 2022 wangkai <wangkai385@huawei.com> - 2.4.2-1
|
||||||
- Update to 2.4.2
|
- Update to 2.4.2
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user