]> granicus.if.org Git - psmisc/commitdiff
Include <limits.h> for PATH_MAX
authorPaul Barker <paul@paulbarker.me.uk>
Sun, 24 Aug 2014 14:53:12 +0000 (14:53 +0000)
committerCraig Small <csmall@enc.com.au>
Mon, 25 Aug 2014 12:34:23 +0000 (22:34 +1000)
When building against musl libc, PATH_MAX is defined in <limits.h>.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Craig Small <csmall@enc.com.au>
src/pstree.c

index 5540fe24647433edb0a63003fc5b3eb61971e8fe..a8c24f1bc4331da2b63d7a5bb978565cf5c49dd3 100644 (file)
@@ -41,6 +41,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
+#include <limits.h>
 
 #include "i18n.h"
 #include "comm.h"