From dda87e9fbb4f3bdadd46e511ec3de4965599eee5 Mon Sep 17 00:00:00 2001
From: Pierre Lombard <p_l@gmx.fr>
Date: Thu, 25 Oct 2001 23:34:14 +0000
Subject: [PATCH] a few warning fixes (missing #include's)

Originally committed as revision 2477 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
---
 postproc/postprocess.c          | 3 +++
 postproc/postprocess_template.c | 3 +++
 postproc/swscale.c              | 1 +
 postproc/swscale_template.c     | 1 +
 4 files changed, 8 insertions(+)

diff --git a/postproc/postprocess.c b/postproc/postprocess.c
index dbe60191fbe..b097194c922 100644
--- a/postproc/postprocess.c
+++ b/postproc/postprocess.c
@@ -74,6 +74,9 @@ Notes:
 #include <stdlib.h>
 #include <string.h>
 #include "../config.h"
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
 //#undef HAVE_MMX2
 //#define HAVE_3DNOW
 //#undef HAVE_MMX
diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c
index dbe60191fbe..b097194c922 100644
--- a/postproc/postprocess_template.c
+++ b/postproc/postprocess_template.c
@@ -74,6 +74,9 @@ Notes:
 #include <stdlib.h>
 #include <string.h>
 #include "../config.h"
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
 //#undef HAVE_MMX2
 //#define HAVE_3DNOW
 //#undef HAVE_MMX
diff --git a/postproc/swscale.c b/postproc/swscale.c
index f36cdac937d..b26bea4483a 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -6,6 +6,7 @@
 // the parts written by michael are under GNU GPL
 
 #include <inttypes.h>
+#include <string.h>
 #include "../config.h"
 #include "swscale.h"
 
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index f36cdac937d..b26bea4483a 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -6,6 +6,7 @@
 // the parts written by michael are under GNU GPL
 
 #include <inttypes.h>
+#include <string.h>
 #include "../config.h"
 #include "swscale.h"
 
-- 
GitLab