freebsd-ports/misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c
Martin Wilke d8e7a70be8 - Update to 0.1.7
PR:		107632
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2007-01-09 22:26:12 +00:00

21 lines
593 B
C

--- gkrellmbgchg.c.orig Thu Jun 29 05:19:13 2006
+++ gkrellmbgchg.c Sat Jan 6 02:06:10 2007
@@ -117,7 +117,9 @@
{
FILE *file;
gchar *tmp;
-
+#if !defined(WIN32)
+ struct stat buf;
+#endif
if( filename ) {
if( !strncmp( filename, "~/", MIN(2, strlen(filename)) ) )
tmp = g_strdup_printf( "%s/%s", g_get_home_dir(), filename+2 );
@@ -128,7 +130,6 @@
#if !defined(WIN32)
/* don't load if no force and not modified */
- struct stat buf;
if( stat( tmp, &buf ) == -1 ) {
/* something went wrong, we just don't care what for now */
GKBG_debug("stat: error on `%s'", tmp);