$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	2007-01-22 17:31:08.000000000 +0000
+++ lib/rtp/rtp.c
@@ -62,6 +62,10 @@
 
 #include "rtp.h"
 
+#ifndef MAX
+#define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
 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++) {
