summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/error.h b/libavutil/error.h
index 61b8e1dd06..8a53b906a2 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -24,6 +24,9 @@
#ifndef AVUTIL_ERROR_H
#define AVUTIL_ERROR_H
+#include <errno.h>
+#include "avutil.h"
+
/* error handling */
#if EINVAL > 0
#define AVERROR(e) (-(e)) /**< Returns a negative error code from a POSIX error code, to return from library functions. */