diff --git a/postproc/rgb2rgb.h b/postproc/rgb2rgb.h
index f5cb903026e3700b1c208973dcd3872866bc3926..c92d7273dbe8251014c2c6e6c27b1ee2778eeaf8 100644
--- a/postproc/rgb2rgb.h
+++ b/postproc/rgb2rgb.h
@@ -9,6 +9,8 @@
 #ifndef RGB2RGB_INCLUDED
 #define RGB2RGB_INCLUDED
 
+#include <stdio.h>
+
 /* A full collection of rgb to rgb(bgr) convertors */
 extern void (*rgb24to32)(const uint8_t *src,uint8_t *dst,unsigned src_size);
 extern void (*rgb24to16)(const uint8_t *src,uint8_t *dst,unsigned src_size);