summaryrefslogtreecommitdiff
path: root/graphics/gimmage/patches/patch-aa
blob: 3f23a43c1b504668b62b6c03a26417db484e0612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.3 2013/04/30 22:34:30 joerg Exp $

--- src/FileManager.cpp.orig	2007-06-26 13:51:15.000000000 +0000
+++ src/FileManager.cpp
@@ -20,6 +20,8 @@ Copyright 2006 Bartek Kostrzewa
 // gimmage: FileManager.cpp
 
 // we make extensive use of get_current_dir_name() from Glib
+// maybe should check for this?
+#define get_current_dir_name() getcwd(NULL, PATH_MAX)
 
 #include "FileManager.h"
 #include "defines.h"
@@ -28,8 +30,9 @@ Copyright 2006 Bartek Kostrzewa
 
 extern "C" {
 #include <libintl.h>
-// #include <unistd.h>
+#include <unistd.h>
 #include <sys/stat.h>
+#include <string.h>
 }
 
 FileManager::FileManager() {}