freebsd-ports/graphics/gsnapshot/files/patch-src_gdisplay.c
Pav Lucistnik 1658e38003 gsnapshot is a GTK2 application. It provides for capturing a screen snapshot of
the entire screen, a window or a region, with a simple user The package also
provides the gdisplay program, a simple image viewer with built-in directory
file browser.

WWW: http://www.softcraft.org/gsnapshot/

PR:		ports/114829
Submitted by:	Yinghong.Liu <relaxbsd@gmail.com>
2007-07-28 21:30:46 +00:00

18 lines
443 B
C

--- src/gdisplay.c.orig Mon Jul 16 06:05:23 2007
+++ src/gdisplay.c Mon Jul 23 20:28:31 2007
@@ -19,9 +19,14 @@
#include "gdisplay.h"
#include "language.h"
+#include <sys/param.h>
#ifndef get_current_dir_name
-extern char *get_current_dir_name(void);
+extern char *get_current_dir_name() {
+ char *buf = malloc(MAXPATHLEN);
+ getwd(buf);
+ return buf;
+}
#endif
static gdisplay_t global; /* (protected) encapsulated program data */