GNOME Bugzilla – Bug 525746
missing #include in cups backend causes crash on x86_64 under eclipse
Last modified: 2008-04-02 13:11:56 UTC
This is a follow-up of Mandriva bug https://qa.mandriva.com/show_bug.cgi?id=39711 In 2.12.9, .lpoptions parsing code is missing #include <glib/gstdio.h> which is causing : gtkprintbackendcups.c: In function 'cups_parse_user_default_printer': gtkprintbackendcups.c:1421: warning: implicit declaration of function 'g_fopen' gtkprintbackendcups.c:1421: warning: assignment makes pointer from integer without a cast gtkprintbackendcups.c: In function 'cups_parse_user_options': gtkprintbackendcups.c:1484: warning: assignment makes pointer from integer without a cast This results in crash in gtk+2.0 when using on x86-64 system, which can be seen under eclipse, if a .lpoptions file is present. Attached patch fixes the issue.
Created attachment 108467 [details] [review] add missing include
oops, I missed it was already fixed on svn in both branches. closing as fixed.