summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg1/patches/patch-ap
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ffmpeg1/patches/patch-ap')
-rw-r--r--multimedia/ffmpeg1/patches/patch-ap27
1 files changed, 27 insertions, 0 deletions
diff --git a/multimedia/ffmpeg1/patches/patch-ap b/multimedia/ffmpeg1/patches/patch-ap
new file mode 100644
index 00000000000..2ae5e4253c0
--- /dev/null
+++ b/multimedia/ffmpeg1/patches/patch-ap
@@ -0,0 +1,27 @@
+$NetBSD: patch-ap,v 1.1 2014/08/11 23:01:50 wiz Exp $
+
+--- libavutil/common.h.orig 2013-01-06 21:53:29.000000000 +0000
++++ libavutil/common.h
+@@ -39,6 +39,22 @@
+ #include "version.h"
+ #include "libavutil/avconfig.h"
+
++#if defined(__cplusplus)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__)
++#undef _STDINT_H_
++#undef _SYS_STDINT_H_
++#undef _STDINT_H
++#undef _GCC_WRAP_STDINT_H
++#ifndef __STDC_CONSTANT_MACROS
++#define __STDC_CONSTANT_MACROS
++#endif
++#include <stdint.h>
++#endif /* FreeBSD | OpenBSD | linux */
++#if defined(__DragonFly__) || defined(__NetBSD__)
++#include <machine/int_const.h>
++#endif /* DragonFly | NetBSD */
++#endif /* __cplusplus */
++
+ #if AV_HAVE_BIGENDIAN
+ # define AV_NE(be, le) (be)
+ #else