diff -Naur libjpeg-turbo-1.3.1-orig/jpeglib.h libjpeg-turbo-1.3.1/jpeglib.h
--- libjpeg-turbo-1.3.1-orig/jpeglib.h	2013-01-19 03:42:31.000000000 +0400
+++ libjpeg-turbo-1.3.1/jpeglib.h	2014-06-28 15:36:12.956400000 +0400
@@ -28,6 +28,7 @@
 #endif
 #include "jmorecfg.h"		/* seldom changed options */
 
+#include <stdio.h>
 
 #ifdef __cplusplus
 #ifndef DONT_USE_EXTERN_C
