* 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

@ -4,6 +4,7 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low
* Correct fix for Debian bug #547073: use IUTF8 flag if defined * Correct fix for Debian bug #547073: use IUTF8 flag if defined
and if already set to make sure the utf-8 flag is not cleared and if already set to make sure the utf-8 flag is not cleared
from the tty. Patch from Samuel Thibault. from the tty. Patch from Samuel Thibault.
* Include limits.h in killall.c to enforce definition of PATH_MAX
[ Petter Reinholdtsen ] [ Petter Reinholdtsen ]
* Next release will be 2.89dsf. * Next release will be 2.89dsf.

View File

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