You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

114 lines
3.4 KiB

Index: configure.ac
--- configure.ac.orig 2024-06-22 00:39:19.475436000 +0200
+++ configure.ac 2024-06-22 00:41:22.174494000 +0200
@@ -19,34 +19,9 @@
# Common CFLAGS
CFLAGS="$CFLAGS \
-fPIC \
- -fstack-protector-all \
- -fstrict-aliasing \
-pthread \
- -Wall \
- -Warray-bounds \
- -Wextra \
- -Wformat-nonliteral \
- -Wformat-security \
- -Wformat=2 \
- -Winit-self \
- -Wlarger-than=2097152 \
- -Wmissing-declarations \
- -Wmissing-format-attribute \
- -Wmissing-include-dirs \
- -Wmissing-noreturn \
- -Wmissing-prototypes \
- -Wnested-externs \
- -Wold-style-definition \
- -Wpacked \
- -Wpointer-arith \
- -Wsign-compare \
- -Wstrict-prototypes \
- -Wswitch-default \
- -Wunused \
-Wno-unused-parameter \
- -Wno-unused-result \
- -Wwrite-strings \
- -Werror=implicit-function-declaration"
+ -Wno-unused-result"
case "$CC" in
*clang*)
@@ -63,9 +38,7 @@
*)
# Specific gcc flags
CFLAGS="$CFLAGS \
- -Wno-override-init \
- -Wunsafe-loop-optimizations \
- -Wunused-but-set-variable"
+ -Wno-override-init"
esac
JANUS_VERSION=1203
Index: src/janus.c
--- src/janus.c.orig 2024-06-20 14:56:10.000000000 +0200
+++ src/janus.c 2024-06-22 00:39:19.476099000 +0200
@@ -405,7 +405,7 @@
g_snprintf(glib2_version, sizeof(glib2_version), "%d.%d.%d", glib_major_version, glib_minor_version, glib_micro_version);
json_object_set_new(deps, "glib2", json_string(glib2_version));
json_object_set_new(deps, "jansson", json_string(JANSSON_VERSION));
- json_object_set_new(deps, "libnice", json_string(libnice_version_string));
+ json_object_set_new(deps, "libnice", json_string("0"));
json_object_set_new(deps, "libsrtp", json_string(srtp_get_version_string()));
#ifdef HAVE_TURNRESTAPI
curl_version_info_data *curl_version = curl_version_info(CURLVERSION_NOW);
@@ -5838,6 +5838,7 @@
exit(1);
}
} else {
+ (void)dlerror();
create_t *create = (create_t*) dlsym(transport, "create");
const char *dlsym_error = dlerror();
if(dlsym_error) {
@@ -5913,15 +5914,6 @@
exit(1); /* FIXME Should we really give up? */
}
- /* Make sure libnice is recent enough, otherwise print a warning */
- int libnice_version = 0;
- if(libnice_version_string != NULL && sscanf(libnice_version_string, "%*d.%*d.%d", &libnice_version) == 1) {
- if(libnice_version < 16) {
- JANUS_LOG(LOG_WARN, "libnice version outdated: %s installed, at least 0.1.16 recommended. Notice the installed version was checked at build time: if you updated libnice in the meanwhile, re-configure and recompile to get rid of this warning\n",
- libnice_version_string);
- }
- }
-
/* Ok, Janus has started! Let the parent now about this if we're daemonizing */
if(daemonize) {
int code = 0;
Index: src/plugins/janus_audiobridge.c
--- src/plugins/janus_audiobridge.c.orig 2024-06-20 14:56:10.000000000 +0200
+++ src/plugins/janus_audiobridge.c 2024-06-22 00:39:19.476912000 +0200
@@ -1147,8 +1147,10 @@
#include <arpa/inet.h>
#include <net/if.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
+#include <netinet/in.h>
#include <sys/time.h>
#include <poll.h>
Index: src/rtpfwd.h
--- src/rtpfwd.h.orig 2024-06-20 14:56:10.000000000 +0200
+++ src/rtpfwd.h 2024-06-22 00:39:19.477000000 +0200
@@ -18,7 +18,9 @@
#include "rtp.h"
#include "rtpsrtp.h"
-
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
/*! \brief RTP forwarders code initialization
* @returns 0 in case of success, a negative integer on errors */