diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-02-05 18:37:21 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-02-05 18:37:21 +0000 |
commit | 8c9cfb4404f50abfc009e4fbd583f2f60a663b1c (patch) | |
tree | 09ad227419caf8cd62a0240b6cdb52b14b58fd65 /multimedia/libmp4v2/patches | |
parent | 04e54311fd7e81fbb0eef3354c65d34183578d36 (diff) | |
download | pkgsrc-8c9cfb4404f50abfc009e4fbd583f2f60a663b1c.tar.gz |
libmp4v2: Use C++03, fix a couple of SunOS issues.
Diffstat (limited to 'multimedia/libmp4v2/patches')
-rw-r--r-- | multimedia/libmp4v2/patches/patch-ae | 11 | ||||
-rw-r--r-- | multimedia/libmp4v2/patches/patch-ah | 15 |
2 files changed, 22 insertions, 4 deletions
diff --git a/multimedia/libmp4v2/patches/patch-ae b/multimedia/libmp4v2/patches/patch-ae index 85fec75be96..c8e29f3474f 100644 --- a/multimedia/libmp4v2/patches/patch-ae +++ b/multimedia/libmp4v2/patches/patch-ae @@ -1,4 +1,4 @@ -$NetBSD: patch-ae,v 1.3 2017/04/17 08:40:56 wiz Exp $ +$NetBSD: patch-ae,v 1.4 2018/02/05 18:37:21 jperkin Exp $ let <string.h> declare strcasestr() correctly Fix fpos_t cast on NetBSD (_pos vs. __pos) @@ -30,6 +30,15 @@ Fix fpos_t cast on NetBSD (_pos vs. __pos) #else #define FPOS_TO_VAR(fpos, typed, var) (var) = (typed)(fpos) #define VAR_TO_FPOS(fpos, var) (fpos) = (var) +@@ -194,7 +189,7 @@ typedef uint16_t in_port_t; + typedef unsigned int socklen_t; + #endif + +-#ifdef sun ++#ifdef __sun + #include <limits.h> + #define u_int8_t uint8_t + #define u_int16_t uint16_t @@ -233,7 +228,8 @@ char *strsep(char **strp, const char *de #define ADV_SPACE(a) {while (isspace(*(a)) && (*(a) != '\0'))(a)++;} diff --git a/multimedia/libmp4v2/patches/patch-ah b/multimedia/libmp4v2/patches/patch-ah index 1dfa9aea0e0..98a6cf41f27 100644 --- a/multimedia/libmp4v2/patches/patch-ah +++ b/multimedia/libmp4v2/patches/patch-ah @@ -1,10 +1,10 @@ -$NetBSD: patch-ah,v 1.1.1.1 2007/02/09 19:57:48 drochner Exp $ +$NetBSD: patch-ah,v 1.2 2018/02/05 18:37:21 jperkin Exp $ The MAX macro is not defined on all systems (e.g. solaris) ---- lib/rtp/rtp.c.orig 2006-03-20 18:08:24.000000000 -0500 +--- lib/rtp/rtp.c.orig 2007-01-22 17:31:08.000000000 +0000 +++ lib/rtp/rtp.c -@@ -61,6 +61,10 @@ +@@ -62,6 +62,10 @@ #include "rtp.h" @@ -15,3 +15,12 @@ The MAX macro is not defined on all systems (e.g. solaris) typedef struct { uint32_t key; /* Original allocation number */ uint32_t size; /* Size of allocation requested */ +@@ -2553,7 +2557,7 @@ int rtp_send_data_iov (struct rtp *sessi + /* Add the RTP packet header to the beginning of the iov list */ + my_iov = (struct iovec*)xmalloc(my_iov_count * sizeof(struct iovec)); + +- my_iov[0].iov_base = buffer + RTP_PACKET_HEADER_SIZE; ++ my_iov[0].iov_base = (void *)buffer + RTP_PACKET_HEADER_SIZE; + my_iov[0].iov_len = buffer_len; + + for (i = 1, payload_len = 0; i < my_iov_count; i++) { |