PATH_MAX is defined in limits.h. --- src/pstree.c.orig 2014-11-10 15:26:59.195715584 +0100 +++ src/pstree.c 2014-11-10 15:27:20.666926426 +0100 @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include