freebsd-ports/graphics/gsnapshot/files/patch-src_common_filechooser.c
Philip M. Gollucci 5877e4d7b8 - Update to 1.1
PR:             ports/142839
Submitted by:   Bernhard Froehlich <decke@bluelife.at>
2010-02-01 03:32:22 +00:00

20 lines
413 B
C

--- src/common/filechooser.c.orig 2007-09-05 10:18:50.000000000 +0200
+++ src/common/filechooser.c 2010-01-13 21:16:11.000000000 +0100
@@ -19,9 +19,16 @@
*/
#include "filechooser.h"
+#include <sys/param.h>
#ifndef get_current_dir_name
-extern char *get_current_dir_name(void);
+extern char *
+get_current_dir_name(void)
+{
+ char *buf = malloc(MAXPATHLEN);
+ getwd(buf);
+ return buf;
+}
#endif
/*