2013-09-26 17:14:40 +02:00

18 lines
434 B
Plaintext

$NetBSD: patch-ah,v 1.1.1.1 2007/02/09 19:57:48 drochner 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
@@ -61,6 +61,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 */