mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
- Fix build on 4.X
PR: ports/96369 Submitted by: Martin Wilke <freebsd@unixfreunde.de> (maintainer)
This commit is contained in:
parent
e8cab3379e
commit
d90ae0c69b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160741
@ -23,10 +23,6 @@ PLIST_FILES= libexec/gkrellm2/plugins/gkrellmbgchg.so
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
BROKEN= Does not compile
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/Makefile
|
||||
|
||||
|
39
misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c
Normal file
39
misc/gkrellmbgchg2/files/patch-gkrellmbgchg.c
Normal file
@ -0,0 +1,39 @@
|
||||
--- gkrellmbgchg.c.orig Wed Apr 26 17:41:54 2006
|
||||
+++ gkrellmbgchg.c Wed Apr 26 17:54:17 2006
|
||||
@@ -114,7 +114,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 );
|
||||
@@ -125,7 +127,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);
|
||||
@@ -223,6 +224,9 @@
|
||||
gint num=1;
|
||||
FILE *idb_file;
|
||||
struct idb_entry *idb_e;
|
||||
+#if !defined(WIN32)
|
||||
+ struct stat buf;
|
||||
+#endif
|
||||
|
||||
if((idb_file = open_imagelist( bgmon.idb, force )) == NULL) return 1;
|
||||
|
||||
@@ -261,7 +265,6 @@
|
||||
#if !defined(WIN32)
|
||||
/* ignore the file if we stat returns -1 (error) and the user wants
|
||||
* us to */
|
||||
- struct stat buf;
|
||||
if( bgmon.ignore && (stat( tmp, &buf ) == -1) ) {
|
||||
GKBG_debug( "ignoring `%s'", tmp );
|
||||
} else {
|
Loading…
Reference in New Issue
Block a user