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

35 lines
855 B
Plaintext

$NetBSD: patch-al,v 1.5 2012/01/11 15:43:44 hans Exp $
--- lib/mp4v2/mp4.h.orig 2007-09-28 22:45:11.000000000 +0200
+++ lib/mp4v2/mp4.h
@@ -31,8 +31,29 @@
#ifndef __MP4_INCLUDED__
#define __MP4_INCLUDED__
+#ifdef MPEG4IP
/* include system and project specific headers */
#include "mpeg4ip.h"
+#else
+#include <sys/types.h>
+#include <strings.h>
+#include <stdio.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+typedef void (*lib_message_func_t)(int loglevel,
+ const char *lib,
+ const char *fmt,
+ ...);
+
+#ifdef __sun
+#define u_int8_t uint8_t
+#define u_int16_t uint16_t
+#define u_int32_t uint32_t
+#define u_int64_t uint64_t
+#endif
+#endif
+
#include <math.h> /* to define float HUGE_VAL and/or NAN */
#ifndef NAN
#define NAN HUGE_VAL