Index: widelands-17/src/io/filesystem/filesystem.cc
===================================================================
--- widelands-17.orig/src/io/filesystem/filesystem.cc	2012-04-23 11:46:49.000000000 +0200
+++ widelands-17/src/io/filesystem/filesystem.cc	2012-05-02 13:35:12.000000000 +0200
@@ -63,6 +63,10 @@
 #define S_ISREG(x) ((x&_S_IFREG)?1:0)
 #endif
 
+#ifndef PATH_MAX
+ #define PATH_MAX 1024
+#endif
+
 FileSystem::FileSystem()
 {
 	m_root = "";
Index: widelands-17/src/wlapplication.cc
===================================================================
--- widelands-17.orig/src/wlapplication.cc	2012-04-23 11:46:49.000000000 +0200
+++ widelands-17/src/wlapplication.cc	2012-05-02 13:35:27.000000000 +0200
@@ -95,6 +95,10 @@
 #endif
 #endif
 
+#ifndef PATH_MAX
+ #define PATH_MAX 1024
+#endif
+
 #define MINIMUM_DISK_SPACE 250000000lu
 #define SCREENSHOT_DIR "screenshots"
 
