* Include limits.h in killall.c to enforce definition of PATH_MAX

This commit is contained in:
Werner Fink
2010-04-28 08:31:17 +00:00
parent cdb70c3a56
commit 27821f3c1b
2 changed files with 10 additions and 0 deletions

View File

@@ -43,6 +43,7 @@
#include <dirent.h>
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <mntent.h>
#include <stdarg.h>
#include <stdio.h>
@@ -59,6 +60,14 @@
char *Version = "@(#)killall5 2.86 31-Jul-2004 miquels@cistron.nl";
#ifndef PATH_MAX
# ifdef MAXPATHLEN
# define PATH_MAX MAXPATHLEN
# else
# define PATH_MAX 2048
# endif
#endif
#define STATNAMELEN 15
#define DO_NETFS 2
#define DO_STAT 1