diff --git a/recipes-misc/ortp/files/compile-fixes-newer-gcc.diff b/recipes-misc/ortp/files/compile-fixes-newer-gcc.diff new file mode 100644 index 0000000000..94ddde0bf8 --- /dev/null +++ b/recipes-misc/ortp/files/compile-fixes-newer-gcc.diff @@ -0,0 +1,13 @@ +Index: ortp-0.16.5/src/stun.c +=================================================================== +--- ortp-0.16.5.orig/src/stun.c ++++ ortp-0.16.5/src/stun.c +@@ -399,7 +399,7 @@ stunParseMessage( char* buf, unsigned in + char* body; + unsigned int size; + ortp_debug("stun: Received stun message: %i bytes\n", bufLen); +- memset(msg, 0, sizeof(msg)); ++ memset(msg, 0, sizeof(*msg)); + + if (sizeof(StunMsgHdr) > bufLen) + { diff --git a/recipes-misc/ortp/ortp_0.16.5.bb b/recipes-misc/ortp/ortp_0.16.5.bb index 55e945815f..79996a20ce 100644 --- a/recipes-misc/ortp/ortp_0.16.5.bb +++ b/recipes-misc/ortp/ortp_0.16.5.bb @@ -1,8 +1,9 @@ require ortp.inc DEPENDS = "glib-2.0 " -PR = "${INC_PR}.0" +PR = "${INC_PR}.1" -SRC_URI += "file://0001-fix-unused-variables.patch;patch=1" +SRC_URI += "file://0001-fix-unused-variables.patch;patch=1 \ + file://compile-fixes-newer-gcc.diff" SRC_URI[md5sum] = "94546901d14b85f97342f4ecf39489b1" SRC_URI[sha256sum] = "3b655a79f9122afd298e9cd702e542908bbd6ea1337c02553110c57e0b3c5835"