diff --git a/opensips-c99.patch b/opensips-c99.patch new file mode 100644 index 0000000..c69467b --- /dev/null +++ b/opensips-c99.patch @@ -0,0 +1,25 @@ +commit acf0c149503b034955557020ea1ad89713cded12 +Author: Razvan Crainea +Date: Thu Feb 2 13:38:06 2023 +0200 + + lua: proper include for timegm + + Thanks go to Jonathan Wakely (@jwakely on GitHub) for reporting it. + Close #3005 + +diff --git a/modules/lua/sipdatetime.c b/modules/lua/sipdatetime.c +index 0febffd6aba4be47..7f3f41cc805b7443 100644 +--- a/modules/lua/sipdatetime.c ++++ b/modules/lua/sipdatetime.c +@@ -18,9 +18,10 @@ + */ + + #define _XOPEN_SOURCE ++#define _DEFAULT_SOURCE /* for timegm() */ ++#define _BSD_SOURCE /* for timegm() */ + #include + #include +-#define __USE_MISC /* for timegm() */ + #include + + #include diff --git a/opensips.spec b/opensips.spec index aa1b85a..e16a5c3 100644 --- a/opensips.spec +++ b/opensips.spec @@ -5,7 +5,7 @@ Summary: Open Source SIP Server Name: opensips Version: 3.3.3 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz # Fedora-specific patches @@ -18,6 +18,7 @@ Patch006: opensips-0006-tm-clone-message-in-async-mode-only-in-request-route.pat %if 0%{?fedora} >= 34 Patch007: opensips-0007-libcouchbase-API-v3.patch %endif +Patch008: opensips-c99.patch URL: https://opensips.org @@ -1492,6 +1493,9 @@ useradd -r -g %{name} -d %{_localstatedir}/run/%{name} -s /sbin/nologin \ %changelog +* Sun Feb 05 2023 Florian Weimer - 3.3.3-3 +- Apply upstream patch to fix C99 compatibility issue + * Thu Jan 19 2023 Fedora Release Engineering - 3.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild