diff -up poppler-0.10.5/poppler/CairoFontEngine.cc.orig poppler-0.10.5/poppler/CairoFontEngine.cc --- poppler-0.10.5/poppler/CairoFontEngine.cc.orig 2008-10-09 21:30:34.000000000 +0100 +++ poppler-0.10.5/poppler/CairoFontEngine.cc 2009-04-07 09:37:53.598158130 +0100 @@ -148,7 +148,7 @@ _ft_done_face (void *closure) else _ft_open_faces = data->next; - munmap (data->bytes, data->size); + munmap ((char*)data->bytes, data->size); close (data->fd); FT_Done_Face (data->face); @@ -190,7 +190,7 @@ _ft_new_face (FT_Library lib, for (l = _ft_open_faces; l; l = l->next) { if (_ft_face_data_equal (l, &tmpl)) { - munmap (tmpl.bytes, tmpl.size); + munmap ((char*)tmpl.bytes, tmpl.size); close (tmpl.fd); *face_out = l->face; *font_face_out = cairo_font_face_reference (l->font_face); @@ -200,7 +200,7 @@ _ft_new_face (FT_Library lib, /* not a dup, open and insert into list */ if (FT_New_Face (lib, filename, 0, &tmpl.face)) { - munmap (tmpl.bytes, tmpl.size); + munmap ((char*)tmpl.bytes, tmpl.size); close (tmpl.fd); return gFalse; }