Mercurial > pidgin
changeset 22388:128e06a1e1fc
Fix building with glib < 2.6
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 29 Feb 2008 13:45:05 +0000 |
parents | a6a24fabf855 |
children | 25a1d6fe9074 |
files | finch/libgnt/gntwm.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <glib.h> -#include <glib/gstdio.h> +#if GLIB_CHECK_VERSION(2,6,0) +# include <glib/gstdio.h> +#else +# include <sys/types.h> +# include <sys/stat.h> +# include <fcntl.h> +# define g_fopen open +#endif #include <ctype.h> #include <gmodule.h> #include <stdlib.h>