From c2c0d1e5d437b690b87333581fb24357c7db7876 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 31 Oct 2009 15:26:07 +0000 Subject: (svn r17923) -Feature: "port" OpenTTD to GNU/Hurd --- config.lib | 1 + src/depend/depend.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.lib b/config.lib index 82e71b41e..2a4114d6f 100644 --- a/config.lib +++ b/config.lib @@ -1901,6 +1901,7 @@ detect_os() { /cygwin/ { print "CYGWIN"; exit} /mingw/ { print "MINGW"; exit} /os\/2/ { print "OS2"; exit} + /gnu/ { print "UNIX"; exit} '` fi diff --git a/src/depend/depend.cpp b/src/depend/depend.cpp index 8510f0ecd..7da5fecbb 100644 --- a/src/depend/depend.cpp +++ b/src/depend/depend.cpp @@ -30,6 +30,10 @@ #include #include +#ifndef PATH_MAX +# define PATH_MAX 260 +#endif + /** Simple string comparator using strcmp as implementation */ struct StringCompare { /** -- cgit v1.2.3-70-g09d2