--- mms-1.0.8.5/config_header.hpp.orig 2008-12-11 08:13:53.000000000 +0200 +++ mms-1.0.8.5/config_header.hpp 2008-12-11 08:13:28.000000000 +0200 @@ -1,5 +1,6 @@ #include #include +#include #include "print.hpp" --- mms-1.0.8.5/config_maker.hpp.orig 2008-12-11 08:13:59.000000000 +0200 +++ mms-1.0.8.5/config_maker.hpp 2008-12-11 08:13:13.000000000 +0200 @@ -3,6 +3,7 @@ #include #include #include +#include #include "gettext.hpp" --- mms-1.0.8.5/input.cpp.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/input.cpp 2008-12-11 08:14:42.000000000 +0200 @@ -13,6 +13,7 @@ #include #include #include +#include using std::string; --- mms-1.0.8.5/renderer.cpp.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/renderer.cpp 2008-12-11 08:11:04.000000000 +0200 @@ -1219,16 +1219,16 @@ } void Render::text_part(const string& message, const string& font_name, int r, int g, int b, - int x, int y, int total_w, int total_h, const rect& rect) + int x, int y, int total_w, int total_h, const rect& rct) { if (set_font(font_name)) { - Imlib_Image temp2= imlib_create_cropped_image(rect.x, rect.y, rect.w, rect.h); + Imlib_Image temp2= imlib_create_cropped_image(rct.x, rct.y, rct.w, rct.h); Imlib_Image temp = imlib_create_image(total_w, total_h); imlib_context_set_image(temp); - imlib_blend_image_onto_image(temp2, 0, 0, 0, rect.w, rect.h, rect.x-x, rect.y-y, rect.w, rect.h); + imlib_blend_image_onto_image(temp2, 0, 0, 0, rct.w, rct.h, rct.x-x, rct.y-y, rct.w, rct.h); imlib_context_set_image(temp2); imlib_free_image(); @@ -1251,7 +1251,7 @@ imlib_context_set_image(current.image_data); - imlib_blend_image_onto_image(temp, 0, rect.x-x, rect.y-y, rect.w, rect.h, rect.x, rect.y, rect.w, rect.h); + imlib_blend_image_onto_image(temp, 0, rct.x-x, rct.y-y, rct.w, rct.h, rct.x, rct.y, rct.w, rct.h); imlib_context_set_image(temp); imlib_free_image(); --- mms-1.0.8.5/renderer.hpp.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/renderer.hpp 2008-12-11 08:10:22.000000000 +0200 @@ -182,7 +182,7 @@ void text(const std::string& text, const std::string& font, int x, int y, int r, int g, int b); void text_part(const std::string& text, const std::string& font, int r, int g, int b, - int x, int y, int total_w, int total_h, const rect& r); + int x, int y, int total_w, int total_h, const rect& rct); void rectangle(int x, int y, int width, int height, int r, int g, int b, int a); }; --- mms-1.0.8.5/general.cc.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/general.cc 2008-12-11 08:20:37.000000000 +0200 @@ -7,6 +7,7 @@ #include #include #include +#include #include #include --- mms-1.0.8.5/library-builder/md5digest.h.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/library-builder/md5digest.h 2008-12-11 08:27:48.000000000 +0200 @@ -3,6 +3,7 @@ #include #include +#include #include "md5.h" using std::string; --- mms-1.0.8.5/library-builder/picker.cc.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/library-builder/picker.cc 2008-12-11 08:28:45.000000000 +0200 @@ -1,5 +1,6 @@ #include #include +#include #include --- mms-1.0.8.5/library-builder/sqldb.cc.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/library-builder/sqldb.cc 2008-12-11 08:32:10.000000000 +0200 @@ -1,5 +1,6 @@ #include #include +#include #include #include "strmanip.h" --- mms-1.0.8.5/library-builder/spectrum.cc.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/library-builder/spectrum.cc 2008-12-11 08:33:59.000000000 +0200 @@ -1,5 +1,8 @@ #include #include +#include +#include +#include #include #include --- mms-1.0.8.5/imdb.cpp.orig 2007-08-20 23:42:39.000000000 +0300 +++ mms-1.0.8.5/imdb.cpp 2008-12-11 08:36:04.000000000 +0200 @@ -2,6 +2,8 @@ // converted from Winblows to UNIX by Anders Rune Jensen // changed to use http_fetcher library instead of buggy and ugly http class +#include + #include "imdb.hpp" #include "print.hpp" --- mms-1.0.8.5/libs/libavcodec/i386/mpegvideo_mmx.c.orig 2007-08-20 23:42:40.000000000 +0300 +++ mms-1.0.8.5/libs/libavcodec/i386/mpegvideo_mmx.c 2008-12-11 09:04:42.000000000 +0200 @@ -25,6 +25,17 @@ #include "../avcodec.h" #include "mmx.h" +/* x86_cpu.h from ffmpeg */ + +#include + +#ifdef ARCH_X86_64 +typedef int64_t x86_reg; +#elif ARCH_X86_32 +typedef int32_t x86_reg; +#endif + + extern uint8_t zigzag_direct_noperm[64]; extern uint16_t inv_zigzag_direct16[64]; @@ -35,7 +46,7 @@ static void dct_unquantize_h263_intra_mmx(MpegEncContext *s, DCTELEM *block, int n, int qscale) { - long level, qmul, qadd, nCoeffs; + x86_reg level, qmul, qadd, nCoeffs; qmul = qscale << 1; @@ -100,7 +111,7 @@ "add $16, %3 \n\t" "jng 1b \n\t" - ::"r" (block+nCoeffs), "g"(qmul), "g" (qadd), "r" (2*(-nCoeffs)) + ::"r" (block+nCoeffs), "rm"(qmul), "rm" (qadd), "r" (2*(-nCoeffs)) : "memory" ); block[0]= level;