# HG changeset patch # User Stu Tomlinson # Date 1204292705 0 # Node ID 128e06a1e1fc98d6b142d2dd131f567b15dd4b15 # Parent a6a24fabf855245a64cd2fee3b4ee29b8590d3c5 Fix building with glib < 2.6 diff -r a6a24fabf855 -r 128e06a1e1fc finch/libgnt/gntwm.c --- a/finch/libgnt/gntwm.c Fri Feb 29 12:10:37 2008 +0000 +++ b/finch/libgnt/gntwm.c Fri Feb 29 13:45:05 2008 +0000 @@ -32,7 +32,14 @@ #endif #include -#include +#if GLIB_CHECK_VERSION(2,6,0) +# include +#else +# include +# include +# include +# define g_fopen open +#endif #include #include #include