Comment 10 for bug 1245722

Revision history for this message
Jack Howarth (howarth) wrote :

This issue in fink is due to our usage of glib2 2.22.4 which doesn't cause the system.ii generated on fink to include unistd.h….

extension/system.cpp:91:18: error: use of undeclared identifier 'getcwd'
        curdir = getcwd(__null, 0);
                 ^

so extension/system.cpp needs to include…

--- src/extension/system.cpp.orig 2013-11-18 19:30:30.000000000 -0500
+++ src/extension/system.cpp 2013-11-18 19:30:07.000000000 -0500
@@ -20,6 +20,9 @@

 #include <interface.h>

+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #include "system.h"
 #include "preferences.h"
 #include "extension.h"

MacPorts doesn't see this because they are using glib 2.38.2