mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-07 17:55:42 +00:00
define PATH_MAX when missing from limits.h
Some non-Linux systems do not define PATH_MAX (Hurd). Since I have no interest in supporting a fully dynamic PATH_MAX in AppArmor, work around this by just defining a static value that matches Linux's limits.h value. Signed-off-by: Kees Cook <kees.cook@canonical.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
@@ -27,6 +27,11 @@
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/* some non-Linux systems do not define a static value */
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX 4096
|
||||
#endif
|
||||
|
||||
#define symbol_version(real, name, version) \
|
||||
__asm__ (".symver " #real "," #name "@" #version)
|
||||
#define default_symbol_version(real, name, version) \
|
||||
|
Reference in New Issue
Block a user